Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable pedantic clippy on CI #147

Merged
merged 3 commits into from
May 15, 2023
Merged

Enable pedantic clippy on CI #147

merged 3 commits into from
May 15, 2023

Conversation

josecelano
Copy link
Member

Enable pedantic clippy on CI.

@josecelano
Copy link
Member Author

josecelano commented May 10, 2023

Hi @da2ce7, I do not know why we get some extra errors. I'm using exactly the same toolchain but I do not get any error:

Runner:

rustc +nightly --version --verbose
rustc 1.71.0-nightly (2f6bc5d25 2023-05-09)
binary: rustc
commit-hash: 2f6bc5d259e7ab25ddfdd33de53b892770218918
commit-date: 2023-05-09
host: x86_64-unknown-linux-gnu
release: 1.71.0-nightly
LLVM version: 16.0.2

Mine:

$ rustc +nightly --version --verbose
rustc 1.71.0-nightly (2f6bc5d25 2023-05-09)
binary: rustc
commit-hash: 2f6bc5d259e7ab25ddfdd33de53b892770218918
commit-date: 2023-05-09
host: x86_64-unknown-linux-gnu
release: 1.71.0-nightly
LLVM version: 16.0.2

I've tried a cargo clean. Maybe it's not the same clippy version.

Mine:

clippy 0.1.71 (2f6bc5d 2023-05-09)

@josecelano
Copy link
Member Author

I'm using the same version, so no idea why we are getting errors on the runner and not on my local machine.

@josecelano
Copy link
Member Author

Hi @da2ce7 @WarmBeer, after debugging for a long time, I found out that I can get the same error locally with the following:

CARGO_INCREMENTAL=0 cargo clippy --all-targets -- -D clippy::pedantic

For some reason, clippy does not show those errors if incremental compilation is enabled.

The command:

```
cargo clippy --all-targets -- -D clippy::pedantic
```

shows more errors when the CARGO_INCREMENTAL env var is 0.

For unknown reason.
Some more clippy erros came up when you use that env var value.
@josecelano josecelano merged commit 556306a into torrust:develop May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant