-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Weird behavior of clippy in qualification script #14045
Comments
@emabee does this also happen if you replace |
In fact, this only happens with clippy. I double-checked also in a smaller project without workspaces: // works:
run_command!("cargo build");
// works:
run_command!("cargo clippy -- -D warnings");
// does not abort, but reports inappropriate warnings:
run_command!("cargo +nightly clippy");
// aborts because of the inappropriate warnings:
run_command!("cargo +nightly clippy -- -D warnings"); |
It seems to complain about any |
@emabee Please try adding I do not understand the root cause (personal failing), but I ran into a similar problem and this was the fix. The root cause has something to do with rust-lang/rust#131729 and rust-lang/cargo#14963. EDIT: I think it has something to do with this line: Line 110 in 88d83b6
|
Yeah it's down to both of those It goes something like: The So you're in a position where nightly Running |
You mean a different approach to invoking nightly Clippy as a subcommand? |
For how |
Yes, this helps! Thanks a lot. @Alexendoo, @smoelius |
Yep, opened rust-lang/cargo#15099 |
Summary
We recognized recently that our qualification script runs into issues when working with nightly.
The script runs various cargo commands to build and test.
With current nightly versions, it has issues to run
cargo +nightly clippy --package hdbconnect -- -D warnings
:It fails with errors like this:
This did not happen until some weeks ago. The source code was not touched in that timeframe.
Executing the command
cargo +nightly clippy --package hdbconnect -- -D warnings
directly on the shell is successful!Reproducer
Here is a minimized version of the script to reproduce this issue:
It fails, but should run successfully.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: