-
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
clippy fails to run with "error[E0463]: can't find crate for std
"
#3523
Comments
I assume this is caused by #3257. rustc_driver's default sysroot is based on |
Ugh so tl;dr: clippy no longer works if manually installed from the git repo? :( |
Just hit this as well, this is extremely confusing. |
This reverts commit 041c49c, reversing changes made to 1df5766. This broke clippy working when installed from the git repo via cargo install. Fixes rust-lang#3523 Reopens rust-lang#2874
I can't even call it directly from the target dir (
It's hard to believe we had no regression tests to catch this earlier. |
It looks like the integration tests do: https://travis-ci.org/rust-lang/rust-clippy/jobs/467976025#L863 but they fail to fail :/ |
Oh wow ... |
It looks like the change isn't going to be reverted. Let's think about alternatives. How about a feature flag to restore the old behaviour? If you're building it yourself you can just enable the feature. |
Does it work if you pass If so, you can use Autodetection of the sysroot has always been a hack (and has gotten more and more hacks to support every kind of setup out there). Maybe we should give cargo some sort of support for installing crates into the sysroot? |
That works for me. |
I'm going to revert this tomorrow on the following grounds:
|
the
I thought CI was fixed, sorry. I'm prioritizing this |
No, ci is still not fixed. There's a PR that tweaks ci to catch this in the future though. |
…i-obk Make integration tests fail on 'E0463' cc #3523
…i-obk Make integration tests fail on 'E0463' cc #3523
On my project I run clippy on travis ci
https://github.com/matthiaskrgr/cargo-cache/blob/master/.travis.yml#L87
A few days ago clippy started failing to run with
without me changing anything on the config.
On december 8 it was still working fine
https://travis-ci.org/matthiaskrgr/cargo-cache/jobs/465214963
On december 9 it started failing to run when being installed from the git repo
https://travis-ci.org/matthiaskrgr/cargo-cache/jobs/465490462
Any ideas what could be the cause of this?
The text was updated successfully, but these errors were encountered: