Skip to content

Commit b8d33dd

Browse files
committed
Forbid running dist steps on stage 0
1 parent 7d58935 commit b8d33dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/src/core/config/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,6 +1379,10 @@ impl Config {
13791379
eprintln!("ERROR: cannot run clippy on stage 0. Use at least stage 1.");
13801380
exit!(1);
13811381
}
1382+
(0, Subcommand::Dist { .. }) => {
1383+
eprintln!("ERROR: cannot dist anything on stage 0. Use at least stage 1.");
1384+
exit!(1);
1385+
}
13821386
_ => {}
13831387
}
13841388

0 commit comments

Comments
 (0)