Skip to content

Commit

Permalink
Call non-git beta builds simply x.y.z-beta
Browse files Browse the repository at this point in the history
We can't use git commands to compute a prerelease version when we're
building from a source tarball, or if git is otherwise unavailable.
We'll just call such builds `x.y.z-beta`, without a prerelease.
  • Loading branch information
cuviper committed Jan 26, 2018
1 parent 9fd7da9 commit a76bb88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bootstrap/lib.rs
Expand Up @@ -776,7 +776,11 @@ impl Build {
fn release(&self, num: &str) -> String {
match &self.config.channel[..] {
"stable" => num.to_string(),
"beta" => format!("{}-beta.{}", num, self.beta_prerelease_version()),
"beta" => if self.rust_info.is_git() {
format!("{}-beta.{}", num, self.beta_prerelease_version())
} else {
format!("{}-beta", num)
},
"nightly" => format!("{}-nightly", num),
_ => format!("{}-dev", num),
}
Expand Down

0 comments on commit a76bb88

Please sign in to comment.