Skip to content

Commit 1089de4

Browse files
committed
Simplify command executions for plain source tarballs
If we're in dry run mode, the command will return an empty string, so we can just execute it.
1 parent 0cab962 commit 1089de4

File tree

1 file changed

+1
-5
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+1
-5
lines changed

src/bootstrap/src/core/build_steps/dist.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1060,11 +1060,7 @@ impl Step for PlainSourceTarball {
10601060
cmd.arg("--sync").arg(manifest_path);
10611061
}
10621062

1063-
let config = if !builder.config.dry_run() {
1064-
cmd.capture().run(builder).stdout()
1065-
} else {
1066-
String::new()
1067-
};
1063+
let config = cmd.capture().run(builder).stdout();
10681064

10691065
let cargo_config_dir = plain_dst_src.join(".cargo");
10701066
builder.create_dir(&cargo_config_dir);

0 commit comments

Comments
 (0)