diff --git a/ci/rust-version.sh b/ci/rust-version.sh index 3db1a843fa105b..98ad807d71dd0a 100644 --- a/ci/rust-version.sh +++ b/ci/rust-version.sh @@ -45,7 +45,7 @@ export rust_nightly_docker_image=solanalabs/rust-nightly:"$nightly_version" declare toolchain=$1 if ! cargo +"$toolchain" -V > /dev/null; then echo "$0: Missing toolchain? Installing...: $toolchain" >&2 - rustup install "$toolchain" + rustup install "$toolchain" --no-self-update cargo +"$toolchain" -V fi }