Commit 16db0cb 1 parent 49d6406 commit 16db0cb Copy full SHA for 16db0cb
File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -461,13 +461,9 @@ function install_toolchain {
461
461
}
462
462
463
463
function install_rustup_components_and_nightly {
464
- echo " Printing the rustup version and toolchain list"
465
- rustup --version
466
- rustup show
467
- rustup toolchain list -v
468
-
469
- echo " Updating rustup and installing rustfmt & clippy"
464
+ echo " Updating rustup and installing the latest rustc, rustfmt & clippy"
470
465
rustup update
466
+ rustup toolchain install stable # Install the latest toolchain to ensure that dependencies can always be built (even if aptos-core is behind)
471
467
rustup component add rustfmt
472
468
rustup component add clippy
473
469
@@ -490,6 +486,11 @@ function install_rustup_components_and_nightly {
490
486
if ! rustup component add rustfmt --toolchain nightly; then
491
487
echo " Failed to install rustfmt nightly using rustup."
492
488
fi
489
+
490
+ echo " Printing the rustup version and toolchain list"
491
+ rustup --version
492
+ rustup show
493
+ rustup toolchain list -v
493
494
}
494
495
495
496
function install_cargo_sort {
You can’t perform that action at this time.
0 commit comments