Rollup merge of #117322 - onur-ozkan:fix-suppressed-outputs, r=Kobzol
change default output mode of `BootstrapCommand` `SuppressOnSuccess` on `BootstrapCommand` is a problematic default mode as it affects the logs during the bootstrapping (as shown in the screenshot below). The default behavior should be to print everything unless we explicitly modify the behavior within build steps. ![image](https://github.com/rust-lang/rust/assets/39852038/8dbaaeb2-0656-4ff9-8e48-1ac0734a913f) Fixes #117315 cc `@Kobzol`
This commit is contained in:
commit
771b2558b4
@ -586,7 +586,11 @@ pub(crate) fn update_submodule(&self, relative_path: &Path) {
|
|||||||
.args(&["diff-index", "--quiet", "HEAD"])
|
.args(&["diff-index", "--quiet", "HEAD"])
|
||||||
.current_dir(&absolute_path),
|
.current_dir(&absolute_path),
|
||||||
)
|
)
|
||||||
.allow_failure(),
|
.allow_failure()
|
||||||
|
.output_mode(match self.is_verbose() {
|
||||||
|
true => OutputMode::PrintAll,
|
||||||
|
false => OutputMode::PrintOutput,
|
||||||
|
}),
|
||||||
);
|
);
|
||||||
if has_local_modifications {
|
if has_local_modifications {
|
||||||
self.run(Command::new("git").args(&["stash", "push"]).current_dir(&absolute_path));
|
self.run(Command::new("git").args(&["stash", "push"]).current_dir(&absolute_path));
|
||||||
|
@ -54,7 +54,7 @@ fn from(command: &'a mut Command) -> Self {
|
|||||||
Self {
|
Self {
|
||||||
command,
|
command,
|
||||||
failure_behavior: BehaviorOnFailure::Exit,
|
failure_behavior: BehaviorOnFailure::Exit,
|
||||||
output_mode: OutputMode::SuppressOnSuccess,
|
output_mode: OutputMode::PrintAll,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user