Skip to content

Commit 408d49e

Browse files
committed
Auto merge of #40484 - alexcrichton:beta-next, r=brson
[beta] Prepare the 1.17.0 beta release * Update stage0.txt to pending 1.16.0 release and current stable cargo rev from 1.16.0 * Update the release channel on CI to beta * Update the cargo submodule to master
2 parents fd182c4 + 0a27a87 commit 408d49e

File tree

4 files changed

+19
-11
lines changed

4 files changed

+19
-11
lines changed

src/bootstrap/dist.rs

+11-8
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ use channel;
3737
use util::{cp_r, libdir, is_dylib, cp_filtered, copy, exe};
3838

3939
fn pkgname(build: &Build, component: &str) -> String {
40-
assert!(component.starts_with("rust")); // does not work with cargo
41-
format!("{}-{}", component, build.rust_package_vers())
40+
if component == "cargo" {
41+
format!("{}-{}", component, build.cargo_package_vers())
42+
} else {
43+
assert!(component.starts_with("rust"));
44+
format!("{}-{}", component, build.rust_package_vers())
45+
}
4246
}
4347

4448
fn distdir(build: &Build) -> PathBuf {
@@ -537,7 +541,7 @@ pub fn cargo(build: &Build, stage: u32, target: &str) {
537541
let src = build.src.join("cargo");
538542
let etc = src.join("src/etc");
539543
let release_num = build.cargo_release_num();
540-
let name = format!("cargo-{}", build.package_vers(&release_num));
544+
let name = pkgname(build, "cargo");
541545
let version = build.cargo_info.version(build, &release_num);
542546

543547
let tmp = tmpdir(build);
@@ -595,12 +599,11 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
595599
println!("Dist extended stage{} ({})", stage, target);
596600

597601
let dist = distdir(build);
598-
let cargo_vers = build.cargo_release_num();
599602
let rustc_installer = dist.join(format!("{}-{}.tar.gz",
600603
pkgname(build, "rustc"),
601604
target));
602-
let cargo_installer = dist.join(format!("cargo-{}-{}.tar.gz",
603-
build.package_vers(&cargo_vers),
605+
let cargo_installer = dist.join(format!("{}-{}.tar.gz",
606+
pkgname(build, "cargo"),
604607
target));
605608
let docs_installer = dist.join(format!("{}-{}.tar.gz",
606609
pkgname(build, "rust-docs"),
@@ -678,7 +681,7 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
678681

679682
cp_r(&work.join(&format!("{}-{}", pkgname(build, "rustc"), target)),
680683
&pkg.join("rustc"));
681-
cp_r(&work.join(&format!("cargo-nightly-{}", target)),
684+
cp_r(&work.join(&format!("{}-{}", pkgname(build, "cargo"), target)),
682685
&pkg.join("cargo"));
683686
cp_r(&work.join(&format!("{}-{}", pkgname(build, "rust-docs"), target)),
684687
&pkg.join("rust-docs"));
@@ -730,7 +733,7 @@ pub fn extended(build: &Build, stage: u32, target: &str) {
730733
cp_r(&work.join(&format!("{}-{}", pkgname(build, "rustc"), target))
731734
.join("rustc"),
732735
&exe.join("rustc"));
733-
cp_r(&work.join(&format!("cargo-nightly-{}", target))
736+
cp_r(&work.join(&format!("{}-{}", pkgname(build, "cargo"), target))
734737
.join("cargo"),
735738
&exe.join("cargo"));
736739
cp_r(&work.join(&format!("{}-{}", pkgname(build, "rust-docs"), target))

src/bootstrap/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,11 @@ impl Build {
994994
self.package_vers(channel::CFG_RELEASE_NUM)
995995
}
996996

997+
/// Returns the value of `package_vers` above for Cargo
998+
fn cargo_package_vers(&self) -> String {
999+
self.package_vers(&self.cargo_release_num())
1000+
}
1001+
9971002
/// Returns the `version` string associated with this compiler for Rust
9981003
/// itself.
9991004
///

src/ci/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fi
4141
# FIXME: need a scheme for changing this `nightly` value to `beta` and `stable`
4242
# either automatically or manually.
4343
if [ "$DEPLOY$DEPLOY_ALT" != "" ]; then
44-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=nightly"
44+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=beta"
4545
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-static-stdcpp"
4646

4747
if [ "$NO_LLVM_ASSERTIONS" = "1" ]; then

src/stage0.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# tarball for a stable release you'll likely see `1.x.0-$date` where `1.x.0` was
1313
# released on `$date`
1414

15-
rustc: beta-2017-02-01
16-
cargo: 407edef22e894266eb562618cba5ca9757051946
15+
rustc: 1.16.0-2017-03-11
16+
cargo: 6b05583d71f982bcad049b9fa094c637c062e751

0 commit comments

Comments
 (0)