Skip to content

Commit

Permalink
Auto merge of rust-lang#77854 - pietroalbini:ETOOMANYCHANNELS, r=Mark…
Browse files Browse the repository at this point in the history
…-Simulacrum

build-manifest: stop generating numbered channel names except for stable

This fixes numbered channel names being created for the nightly channel, and once the root cause of this rides the trains, for beta.

r? `@Mark-Simulacrum`
  • Loading branch information
bors committed Oct 12, 2020
2 parents d6b5ffb + 5973fd4 commit f3ab6f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/tools/build-manifest/src/main.rs
Original file line number Diff line number Diff line change
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 f3ab6f0

Please sign in to comment.