We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36c4e00 commit 7be792eCopy full SHA for 7be792e
src/bootstrap/src/lib.rs
@@ -1511,6 +1511,12 @@ Executed at: {executed_at}"#,
1511
}
1512
1513
fn beta_prerelease_version(&self) -> u32 {
1514
+ if self.config.dry_run() {
1515
+ // Dry run doesn't actually execute a git command, which will panic when trying to parse
1516
+ // the outputs.
1517
+ return 0;
1518
+ }
1519
+
1520
fn extract_beta_rev_from_file<P: AsRef<Path>>(version_file: P) -> Option<String> {
1521
let version = fs::read_to_string(version_file).ok()?;
1522
0 commit comments