Skip to content

Commit

Permalink
Fix dry-run execution of pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Jul 21, 2024
1 parent 36c4e00 commit 7be792e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bootstrap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,12 @@ Executed at: {executed_at}"#,
}

fn beta_prerelease_version(&self) -> u32 {
if self.config.dry_run() {
// Dry run doesn't actually execute a git command, which will panic when trying to parse
// the outputs.
return 0;
}

fn extract_beta_rev_from_file<P: AsRef<Path>>(version_file: P) -> Option<String> {
let version = fs::read_to_string(version_file).ok()?;

Expand Down

0 comments on commit 7be792e

Please sign in to comment.