Skip to content

Commit a7b3b9f

Browse files
committed
Auto merge of #5137 - lzutao:race, r=flip1995
Prevent failing to restart setup-toolchain If `rustup-toolchain-install-master` fails to install master toolchain (in case `rustup update` executes at the same remove the tmp directory), `cargo search` (which use master toolchain after `rustup override` command) will fail. This leads to setup-toolchain fails too. changelog: none
2 parents c881aca + 46df971 commit a7b3b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup-toolchain.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if [[ "$INSTALLED" == false || "$RTIM_PATH" == $CARGO_HOME/bin/rustup-toolchain-
1313
cargo +nightly install rustup-toolchain-install-master
1414
else
1515
VERSION=$(rustup-toolchain-install-master -V | grep -o "[0-9.]*")
16-
REMOTE=$(cargo search rustup-toolchain-install-master | grep -o "[0-9.]*")
16+
REMOTE=$(cargo +nightly search rustup-toolchain-install-master | grep -o "[0-9.]*")
1717
echo "info: skipping updating rustup-toolchain-install-master at $RTIM_PATH"
1818
echo " current version : $VERSION"
1919
echo " remote version : $REMOTE"

0 commit comments

Comments
 (0)