Write MAJOR.MINOR manifest for stable channel only

This commit is contained in:
Carol (Nichols || Goulding) 2020-10-01 12:06:45 -04:00 committed by GitHub
parent 2033eb1495
commit a8fe654448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -293,6 +293,8 @@ impl Builder {
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" {
let major_minor = rust_version.split('.').take(2).collect::<Vec<_>>().join(".");
self.write_channel_files(&major_minor, &manifest);
}