pub enum BuildKeyError {
TaskNotInWorkspace {
task: TaskId,
},
PredecessorStreamsMissing {
predecessor: TaskId,
},
InputPatternResolutionFailed {
root: PathBuf,
source: FsError,
},
InputContentReadFailed {
path: PathBuf,
source: FsError,
},
InputNotARegularFile {
path: PathBuf,
},
}Expand description
Failure modes of build_cache_key.
Variants§
TaskNotInWorkspace
The supplied TaskId does not name a task that exists in
the supplied Workspace. Either the project is unknown or
the project does not declare the task.
PredecessorStreamsMissing
One of the target task’s hard-edge predecessors does not have an entry in the supplied predecessor-stream-hash map. Typically a scheduler bug: the predecessor must complete (and therefore have its stream hashes recorded) before its downstream task is keyed.
InputPatternResolutionFailed
Walking the filesystem to resolve a task’s inputs patterns
failed. Surfaces the originating FsError and the absolute
path the walk was attempting.
Fields
InputContentReadFailed
Reading the bytes of one matched input file failed.
Fields
InputNotARegularFile
One of the matched input paths is a non-regular file kind the
executor cannot hash (a socket, a FIFO, a block or character
device). Symbolic links to regular files are followed
transparently per CACHE-006 and do NOT trigger this
variant.
Trait Implementations§
Source§impl Debug for BuildKeyError
impl Debug for BuildKeyError
Source§impl Display for BuildKeyError
impl Display for BuildKeyError
Source§impl Error for BuildKeyError
impl Error for BuildKeyError
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()
Source§impl ErrorCompat for BuildKeyError
impl ErrorCompat for BuildKeyError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Error::source. Read more