pub(crate) enum ArtifactError {
Show 15 variants
ManifestDecode {
path: PathBuf,
source: Box<DeserializeError>,
},
ArtifactCount {
unit: String,
expected: usize,
actual: usize,
},
MissingArtifact(String),
ArtifactMismatch {
name: String,
field: &'static str,
},
UnsafeFilename(String),
UnexpectedPath {
name: String,
path: PathBuf,
},
Io {
path: PathBuf,
source: Error,
},
NotAFile {
path: PathBuf,
},
MissingOciProgram(String),
OciSpawn {
name: String,
program: PathBuf,
source: Error,
},
OciPush {
name: String,
status: ExitStatus,
},
MissingRegistryLogin(String),
Remote(ForgeFailure),
IncompleteUpload {
tag: String,
},
PublishedMismatch {
tag: String,
},
}Expand description
Publication or staging validation failure.
Variants§
ManifestDecode
The staged manifest is not valid JSON of the expected shape.
ArtifactCount
The stage holds a different number of artifacts than configured.
Fields
MissingArtifact(String)
A configured artifact is not staged.
ArtifactMismatch
A staged artifact disagrees with its configuration.
UnsafeFilename(String)
A staged file name is unsafe or used twice.
UnexpectedPath
A staged artifact is not at artifacts/<filename>.
Io
A staged file cannot be read.
NotAFile
A staged package path is not a regular file.
MissingOciProgram(String)
The manifest has no push program for an OCI artifact.
OciSpawn
A push program could not be started.
Fields
OciPush
A push program exited unsuccessfully.
MissingRegistryLogin(String)
An OCI artifact needs a registry login and the state declares none.
Remote(ForgeFailure)
A forge call failed.
IncompleteUpload
Verification after upload found missing or wrong assets.
PublishedMismatch
An already published release holds other content; it is never changed.
Trait Implementations§
Source§impl Debug for ArtifactError
impl Debug for ArtifactError
Source§impl Display for ArtifactError
impl Display for ArtifactError
Source§impl Error for ArtifactError
impl Error for ArtifactError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()