Skip to content

Commit 29777b5

Browse files
authored
Merge pull request #4852 from lzutao/cargo_install
rustup cargo install-upgrade
2 parents cc35165 + 6173478 commit 29777b5

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cache:
1212
directories:
1313
- $HOME/.cargo
1414
before_cache:
15-
- cargo install -Z install-upgrade cargo-cache --debug
15+
- cargo install cargo-cache --debug
1616
- find $HOME/.cargo/bin/ ! -type d -exec strip {} \;
1717
- cargo cache --autoclean
1818

@@ -28,7 +28,7 @@ install:
2828
- |
2929
if [[ -z ${INTEGRATION} ]]; then
3030
if ! rustup component add rustfmt; then
31-
cargo install -Z install-upgrade --git https://github.com/rust-lang/rustfmt --bin rustfmt
31+
cargo install --git https://github.com/rust-lang/rustfmt --bin rustfmt
3232
fi
3333
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
3434
. $HOME/.nvm/nvm.sh

appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cache:
1818
- '%USERPROFILE%\.cargo'
1919
# before cache
2020
after_test:
21-
- cargo install -Z install-upgrade cargo-cache --debug
21+
- cargo install cargo-cache --debug
2222
- cargo cache --autoclean
2323

2424
install:
@@ -27,7 +27,7 @@ install:
2727
- set PATH=%USERPROFILE%\.cargo\bin;%PATH%
2828
- rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt
2929
- del rust-toolchain
30-
- cargo install -Z install-upgrade rustup-toolchain-install-master
30+
- cargo install rustup-toolchain-install-master
3131
- rustup-toolchain-install-master -f -n master -c rustc-dev
3232
- rustup override set master
3333
- rustc -V

setup-toolchain.sh

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ set -e
55

66
cd "$(dirname "$0")"
77

8-
ERRNO=0
9-
RTIM_PATH=$(command -v rustup-toolchain-install-master) || ERRNO=$?
8+
RTIM_PATH=$(command -v rustup-toolchain-install-master)
109
CARGO_HOME=${CARGO_HOME:-$HOME/.cargo}
1110

1211
# Check if people also install RTIM in other locations beside
1312
# ~/.cargo/bin
14-
if [[ "$ERRNO" -ne 0 ]] || [[ "$RTIM_PATH" == $CARGO_HOME/bin/rustup-toolchain-install-master ]]; then
15-
cargo install -Z install-upgrade rustup-toolchain-install-master
13+
if [[ "$RTIM_PATH" == $CARGO_HOME/bin/rustup-toolchain-install-master ]]; then
14+
cargo +nightly install rustup-toolchain-install-master
1615
else
1716
VERSION=$(rustup-toolchain-install-master -V | grep -o "[0-9.]*")
1817
REMOTE=$(cargo search rustup-toolchain-install-master | grep -o "[0-9.]*")

0 commit comments

Comments
 (0)