Use the --component option in setup scripts (#104)

This should mean that if one of the required components is broken on a
given nightly, rustup will try going backwards until it finds one which
works.
This commit is contained in:
Daniel McNab 2020-10-22 20:20:42 +01:00 committed by GitHub
parent f4f1031976
commit 0793098599
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,3 @@
setlocal
rustup install nightly
rustup component add rust-src rustc-dev llvm-tools-preview
rustup toolchain install nightly --component rust-src rustc-dev llvm-tools-preview

View File

@ -1,3 +1,2 @@
#!/usr/bin/env bash
rustup install nightly
rustup component add rust-src rustc-dev llvm-tools-preview
rustup toolchain install nightly --component rust-src rustc-dev llvm-tools-preview