fn markFailedStepsDirty(maker: *Maker) void
fn markFailedStepsDirty(maker: *Maker) void { const all_steps = maker.step_stack.keys(); for (all_steps) |step_index| { const step = maker.stepByIndex(step_index); switch (step.state) { .dependency_failure, .failure, .skipped => _ = maker.invalidateResult(step), else => continue, } } // Now that all dirty steps have been found, the remaining steps that // succeeded from last run shall be marked "cached". for (all_steps) |step_index| { const step = maker.stepByIndex(step_index); switch (step.state) { .success => step.result_cached = true, else => continue, } } }