Skip to content

Commit

Permalink
build-manifest: stop generating numbered channel names except for stable
Browse files Browse the repository at this point in the history
This fixes numbered channel names being created for the nightly channel,
and once the root cause of this rides the trains, for beta.
  • Loading branch information
pietroalbini committed Oct 12, 2020
1 parent d6b5ffb commit 5973fd4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/tools/build-manifest/src/main.rs
Expand Up @@ -252,12 +252,13 @@ impl Builder {
}
let manifest = self.build_manifest();

let rust_version = self.versions.rustc_version();
self.write_channel_files(self.versions.channel(), &manifest);
if self.versions.channel() != rust_version {
self.write_channel_files(&rust_version, &manifest);
}
if self.versions.channel() == "stable" {
// channel-rust-1.XX.YY.toml
let rust_version = self.versions.rustc_version();
self.write_channel_files(rust_version, &manifest);

// channel-rust-1.XX.toml
let major_minor = rust_version.split('.').take(2).collect::<Vec<_>>().join(".");
self.write_channel_files(&major_minor, &manifest);
}
Expand Down

0 comments on commit 5973fd4

Please sign in to comment.