diff --git a/appveyor.yml b/appveyor.yml index 46614907ab5..93bb8bde7d2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -18,7 +18,7 @@ install: - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin - del rust-toolchain - - cargo install rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed" + - cargo install --git https://github.com/kennytm/rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed" - rustup-toolchain-install-master -f -n master -c rustc-dev - rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt - rustup default master diff --git a/setup-toolchain.sh b/setup-toolchain.sh index 93b78bc21c2..012d26a1046 100755 --- a/setup-toolchain.sh +++ b/setup-toolchain.sh @@ -4,7 +4,10 @@ cd "$(dirname "$0")" || exit if ! command -v rustup-toolchain-install-master > /dev/null; then - cargo install rustup-toolchain-install-master --debug + cargo install \ + --git https://github.com/kennytm/rustup-toolchain-install-master \ + --bin rustup-toolchain-install-master \ + --debug fi rustup-toolchain-install-master -f -n master -c rustc-dev