mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
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.
This commit is contained in:
parent
d6b5ffb5b4
commit
5973fd42a2
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user