Skip to content

Commit dec389a

Browse files
authored
Merge pull request rust-lang#3412 from matthiaskrgr/readme_2
readme: tell how to install clippy on travis from git if it is not shipped with a nightly.
2 parents 1e2291c + 2a1c8b1 commit dec389a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ script:
108108
# etc.
109109
```
110110

111+
It might happen that clippy is not available for a certain nightly release.
112+
In this case you can try to conditionally install clippy from the git repo.
113+
114+
```yaml
115+
language: rust
116+
rust:
117+
- nightly
118+
before_script:
119+
- rustup component add clippy-preview --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
120+
# etc
121+
```
122+
111123
## Configuration
112124

113125
Some lints can be configured in a TOML file named `clippy.toml` or `.clippy.toml`. It contains a basic `variable = value` mapping eg.

0 commit comments

Comments
 (0)