From 7a76e6157321d6e8419c515d58e5b06e1406da57 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Fri, 4 Dec 2020 01:55:42 +0900 Subject: [PATCH] Avoid rustup self-updates on Windows GHA --- ci/install-rust.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/install-rust.sh b/ci/install-rust.sh index dcd24b88ef7b7..b06ba8eddb105 100644 --- a/ci/install-rust.sh +++ b/ci/install-rust.sh @@ -13,7 +13,8 @@ fi if [ "$OS" = "windows" ]; then : "${TARGET?The TARGET environment variable must be set.}" rustup set profile minimal - rustup update --force $toolchain-"$TARGET" + # FIXME: Add `--no-self-update` to avoid CI failure. + rustup update --force $toolchain-"$TARGET" --no-self-update rustup default $toolchain-"$TARGET" else rustup set profile minimal