Print "Checking/Building ..." message even when --dry-run is passed

This makes it a lot easier to understand what commands will be run without
having to parse the `-vv` output, which isn't meant to be user facing.
This commit is contained in:
Joshua Nelson 2022-11-06 17:00:58 -06:00
parent 34972c512b
commit 24378885c8

View File

@ -1019,10 +1019,12 @@ impl Build {
}
fn info(&self, msg: &str) {
if self.config.dry_run() {
return;
match self.config.dry_run {
DryRun::SelfCheck => return,
DryRun::Disabled | DryRun::UserSelected => {
println!("{}", msg);
}
}
println!("{}", msg);
}
/// Returns the number of parallel jobs that have been configured for this