pub(crate) enum PublishError {
WrongAuthority {
branch: String,
expected: String,
actual: String,
},
Cycle {
units: Vec<String>,
},
DuplicateUnit(String),
AuthorityCheck(GitFailure),
MissingPackageFile(String),
PackageLookup {
unit: String,
source: PackageFailure,
},
PackagePublish {
unit: String,
source: PackageFailure,
},
Tag {
unit: String,
source: GitFailure,
},
TagMoved {
unit: String,
tag: String,
location: TagLocation,
expected: String,
actual: String,
},
Remote {
unit: String,
source: ForgeFailure,
},
Release {
unit: String,
source: ArtifactError,
},
}Expand description
A publish failure. Rerunning resumes at the failed step.
Variants§
WrongAuthority
The authoritative branch moved away from the commit to publish.
Fields
Cycle
The batch has no dependency order.
DuplicateUnit(String)
Two units of the batch share a name.
AuthorityCheck(GitFailure)
The authoritative branch head could not be read.
MissingPackageFile(String)
An unpublished package has no staged file to publish.
PackageLookup
Looking up a unit’s package failed.
PackagePublish
Publishing a unit’s package failed.
Tag
Reading, creating, or pushing a unit’s tag failed.
TagMoved
The unit’s tag exists at another commit. A tag never moves.
Fields
§
location: TagLocationWhere the tag was found.
Remote
Reading the forge tag failed.
Release
The forge release or its assets could not be completed.
Trait Implementations§
Source§impl Debug for PublishError
impl Debug for PublishError
Source§impl Display for PublishError
impl Display for PublishError
Source§impl Error for PublishError
impl Error for PublishError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PublishError> for PublicationError
impl From<PublishError> for PublicationError
Source§fn from(source: PublishError) -> Self
fn from(source: PublishError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PublishError
impl !UnwindSafe for PublishError
impl Freeze for PublishError
impl Send for PublishError
impl Sync for PublishError
impl Unpin for PublishError
impl UnsafeUnpin for PublishError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more