File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 3
3
- nightly
4
4
5
5
before_script : |
6
- rustup component add rustfmt-preview;
7
6
rustup component add clippy-preview;
7
+ if ! rustup component add clippy; then
8
+ target=`curl https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy`;
9
+ echo "'clippy' is unavailable on the toolchain 'nightly', using the toolchain 'nightly-$target' instead";
10
+ rustup toolchain install nightly-$target;
11
+ rustup default nightly-$target;
12
+ rustup component add clippy;
13
+ fi
14
+ rustup component add rustfmt-preview;
8
15
if ! rustup component add rustfmt; then
9
16
target=`curl https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/rustfmt`;
10
17
echo "'rustfmt' is unavailable on the toolchain 'nightly', use the toolchain 'nightly-$target' instead";
You can’t perform that action at this time.
0 commit comments