You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using sccache to help improve CI times for a crate. However, my cargo clippy jobs report 0 attempts against the cache (via sccache --show-stats) even though there are compilation rules being performed. Same pattern works for my actual builds.
Steps
Install sccache
RUSTC_WRAPPER=sccache cargo clippy
sccache --show-stats
Should show non-zero stats.
Possible Solution(s)
Call rustc through clippy the same way compiler commands are called.
Clippy itself uses RUSTC_WRAPPER. We are looking to change that in #7533, which should fix sccache caching for dependencies. Caching for the root crates probably still won't work, though I'm not sure what the behavior will be. Closing in favor of rust-lang/rust-clippy#3840 and #7533, which should address this.
Clippy itself uses RUSTC_WRAPPER. We are looking to change that in #7533, which should fix sccache caching for dependencies. Caching for the root crates probably still won't work, though I'm not sure what the behavior will be. Closing in favor of rust-lang/rust-clippy#3840 and #7533, which should address this.
@ehuss, I haven't looked in depth through what #7533 is doing, but when I build it and use it to run clippy, nothing is being cached. Are there further steps than addressing the RUSTC_WRAPPER issue for clippy to be able to use sccache?
Problem
I'm using
sccache
to help improve CI times for a crate. However, mycargo clippy
jobs report 0 attempts against the cache (viasccache --show-stats
) even though there are compilation rules being performed. Same pattern works for my actual builds.Steps
Should show non-zero stats.
Possible Solution(s)
Call rustc through clippy the same way compiler commands are called.
Notes
Output of
cargo version
:cargo 1.38.0 (23ef9a4 2019-08-20)
The text was updated successfully, but these errors were encountered: