pub enum RunReason {
NeverRun,
Always,
InputsChanged {
differences: Vec<Difference>,
machine: Vec<MachineChange>,
},
NotCached {
why: NotCachedReason,
differences: Vec<Difference>,
},
TaskCacheNever,
RunNoCache,
Untraced,
}Expand description
Why a step ran.
The explanations add the reasons that compare a step’s specification with the one its task used last time at the same position.
Variants§
NeverRun
There was no record for the step key: the step never ran with this exact specification.
Always
The step is marked always, and this was its one run in the build.
InputsChanged
A record existed, and the cache check found these recorded paths changed, or these values of the machine state that the step names.
Fields
differences: Vec<Difference>Every difference, sorted by path.
machine: Vec<MachineChange>Every value of the machine state that the step names and that changed, in the order of the step’s names; empty when the check compared none, or none changed.
NotCached
The step’s previous run could not be cached, and the cache check found these paths it touched changed since. In the build of that run, the check compares the paths with their states after it; in a later build, with the states the record of that run holds.
Fields
why: NotCachedReasonWhy the previous run was not cached.
differences: Vec<Difference>Every difference, sorted by path.
TaskCacheNever
The step’s task is marked cache=never, so every command of the task runs as
if it were marked always, and this was its one run in the build.
RunNoCache
kizz run --no-cache was given, so the step ran although its record may
have been a cache hit, and this was its one run in the run of the task.
Untraced
Tracing is disabled, so this command runs once per build and is never reused.
Trait Implementations§
impl Eq for RunReason
impl StructuralPartialEq for RunReason
Auto Trait Implementations§
impl Freeze for RunReason
impl RefUnwindSafe for RunReason
impl Send for RunReason
impl Sync for RunReason
impl Unpin for RunReason
impl UnsafeUnpin for RunReason
impl UnwindSafe for RunReason
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.