pub enum ResolverError {
NotADependency {
name: String,
},
MissingFile {
dep: String,
path: PathBuf,
kind: MissingFileKind,
},
NotInLockfile {
dep: String,
},
LockfileSourceMismatch {
dep: String,
},
SignerKeyMismatch {
dep: String,
expected: Box<VerifyingKey>,
observed: Box<VerifyingKey>,
},
SignatureDowngrade {
dep: String,
expected_signer: Box<VerifyingKey>,
},
RequireSignedViolation {
dep: String,
},
Io {
path: PathBuf,
source: Error,
},
Manifest(ManifestError),
Lockfile(LockfileError),
RelativePath(RelativePathError),
}Expand description
An error returned by the Resolver trait or
any resolver-layer operation.
Variants§
NotADependency
The symbolic path’s head does not appear in the consumer’s
dependencies map.
MissingFile
A required file was not found, or was excluded.
Fields
kind: MissingFileKindWhich kind of lookup failed.
NotInLockfile
A dependency is not present in the lockfile. Run
sprocket module lock to update it.
LockfileSourceMismatch
The manifest source for a dependency does not match the
lockfile source. Run sprocket module lock to update.
SignerKeyMismatch
A cached module’s signature key does not match the lockfile’s recorded signer.
Fields
expected: Box<VerifyingKey>The signer key recorded in the lockfile.
observed: Box<VerifyingKey>The signer key observed in the cache.
SignatureDowngrade
A dependency was signed when the lockfile was written but is now
unsigned. This prevents a supply-chain downgrade where an
attacker strips the signature from a module whose content hash
has not changed (since module.sig is excluded from the hash).
Fields
expected_signer: Box<VerifyingKey>The signer key recorded in the lockfile.
RequireSignedViolation
require_signed is enabled and the dependency is unsigned.
Io
An I/O error.
Manifest(ManifestError)
A Manifest parse or validation error.
Lockfile(LockfileError)
A Lockfile parse or validation error.
RelativePath(RelativePathError)
A RelativePath validation error.
Trait Implementations§
Source§impl Debug for ResolverError
impl Debug for ResolverError
Source§impl Display for ResolverError
impl Display for ResolverError
Source§impl Error for ResolverError
impl Error for ResolverError
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()