Skip to main content

run_pass

Function run_pass 

Source
pub fn run_pass(
    workspace: &Path,
    why: Why,
    policy: &Policy,
    is_busy: &dyn Fn(&Path) -> bool,
    now: SystemTime,
    log: Option<&Path>,
) -> Report
Expand description

One pass over the clones of workspace.

TaskDone clears every incremental folder; the others prune orphans (when the policy allows). TaskDone, LowDisk and Asked also remove a clone’s whole target when nothing was built in it for the policy’s stale time; the hourly pass leaves a quiet clone alone. A clone with a build running in it is skipped.