pub enum ResolveError {
Io(Error),
Git(GitError),
Lisp(LispError),
Manifesto(LeituraError),
MissingPin {
nome: String,
},
MissingPath {
nome: String,
path: PathBuf,
},
Cycle(String),
}Variants§
Io(Error)
Git(GitError)
Lisp(LispError)
Manifesto(LeituraError)
A resolved dep’s caixa.lisp did not read as a package manifest.
Distinct from Self::Lisp because the interesting case is
LeituraError::DialetoEstrangeiro: a dep whose manifest is a
repo-surface declaration rather than a package manifest is not a
syntax error in that dep, it is the wrong KIND of file, and a resolver
that flattened both into “lisp: …” would send the author hunting for a
typo that is not there.
MissingPin
MissingPath
Cycle(String)
Implementations§
Source§impl ResolveError
impl ResolveError
Sourcepub fn missing_path(nome: &str, path: impl Into<PathBuf>) -> ResolveError
pub fn missing_path(nome: &str, path: impl Into<PathBuf>) -> ResolveError
Substrate primitive constructor for the per-Dep
:fonte (:tipo path :caminho …) on-disk-absence refusal
diagnostic. Folds the pre-lift open-coded four-line
Err(ResolveError::MissingPath { nome: dep.nome().to_string(), path }) two-slot struct-literal inside [fetch_path] onto one
dispatch. Peer with the sibling one-slot MissingPin { nome: String } variant on the same envelope, which the paired
Self::missing_pin ctor now folds onto its own substrate
primitive on [fetch_git]’s .ok_or_else closure-form emission
arm. Every future consumer that surfaces the same
on-disk-absence diagnostic outside fetch_path — a deferred
feira lock --path-only pre-flight probe, a per-lacre overlay
resolver rejecting a cluster-local :caminho overlay that
vanished between resolve passes, the M4 mesh.pleme.io/v1alpha1/ Caixa CR admission webhook re-checking a per-:fonte-patched
candidate before the closure walker re-fires — reaches the
variant through one call rather than re-inlining the two-slot
struct-literal in lockstep with [fetch_path]’s wire-up.
The nome: &str parameter accepts &str literals and &String
via Deref coercion so the sole in-crate wire-up threads
dep.nome() (a &str accessor via Dep::nome) through the
ctor without a pre-conversion; the path: impl Into<PathBuf>
parameter takes the observed on-disk-absent PathBuf built
at the caller from PathBuf::from(caminho) and forwards it
through the From<PathBuf> identity into the variant slot
without an extra allocation.
Sourcepub fn missing_pin(nome: &str) -> ResolveError
pub fn missing_pin(nome: &str) -> ResolveError
Substrate primitive constructor for the per-Dep
:fonte (:tipo git …)-arm sole-set-pin absence refusal
diagnostic. Folds the pre-lift open-coded three-line
ResolveError::MissingPin { nome: dep.nome().to_string() }
one-slot struct-literal inside [fetch_git]’s .ok_or_else
closure-form emission arm onto one dispatch. Peer with the
sibling two-slot Self::missing_path ctor on the same
envelope’s on-disk-absence refusal axis — this ctor closes the
paired closure-form emission axis on the :fonte (:tipo git …)-arm’s pin-precedence projection (DepSource::sole_pin)
through which every author-omitted-and-default-host-shorthand-
expanded Git source (expand_fonte(dep, default_host) on a
Dep::simple(...) bare dep) reaches [fetch_git] with all
three tag/rev/branch pins None. Every future consumer
that surfaces the same sole-set-pin absence diagnostic outside
[fetch_git] — a deferred feira lock --dry-run pre-flight
per-:deps pin-presence probe that refuses before the
closure walker fires a single git clone, a per-lacre overlay
resolver rejecting a cluster-local :fonte overlay whose pin
axis was dropped between resolve passes, the M4
mesh.pleme.io/v1alpha1/Caixa CR admission webhook re-checking
a per-:fonte-patched candidate before the closure walker
re-fires — reaches the variant through one call rather than
re-inlining the one-slot struct-literal in lockstep with
[fetch_git]’s closure-form emission arm.
The nome: &str parameter accepts &str literals and &String
via Deref coercion so the sole in-crate wire-up threads
dep.nome() (a &str accessor via Dep::nome) through the
ctor without a pre-conversion, byte-parallel to the sibling
Self::missing_path ctor’s nome parameter.
Trait Implementations§
Source§impl Debug for ResolveError
impl Debug for ResolveError
Source§impl Display for ResolveError
impl Display for ResolveError
Source§impl Error for ResolveError
impl Error for ResolveError
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()