about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2020-10-12 17:39:13 +0200
committerPietro Albini <pietro@pietroalbini.org>2020-10-12 17:39:13 +0200
commit5973fd42a2e9475bb36c07cbd9985870ad5ff9a1 (patch)
tree809b0533b3a0751caac64f7df7adfee9428325d4
parentd6b5ffb5b41579dbc49e651691fa9bb670a39a07 (diff)
downloadrust-5973fd42a2e9475bb36c07cbd9985870ad5ff9a1.tar.gz
rust-5973fd42a2e9475bb36c07cbd9985870ad5ff9a1.zip
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.
-rw-r--r--src/tools/build-manifest/src/main.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tools/build-manifest/src/main.rs b/src/tools/build-manifest/src/main.rs
index b35f3a595fb..7ee28cd6e5d 100644
--- a/src/tools/build-manifest/src/main.rs
+++ b/src/tools/build-manifest/src/main.rs
@@ -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);
         }