-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Failed to cache build-std
builds
#161
Comments
This is an interesting problem. Since we use the output of I would say this would be fairly complex to solve. |
I guess maybe we can hardcode them?
I think this can be solved by setting the creation time of
Yeah, though I do think I should at least open an issue here to see if there's anyway we could improve this. |
In the CI, you can see that despite the cache is loaded (it's partial match since I changed
package.metadata.docs.rs
),cargo
still re-compiles the everything:I noticed that
cargo
downloads a few crates that is used by std:Of which I can be sure that
compiler_builtins
is definitely used within std,cc
might be used inbuild.rs
of the std-related crates and I cannot found whereallocator-api2
is compiled.I also noticed that it compiles crates from
$HOME/.rustup/toolchains
:since we install
nightly
usingrustup
in each run, the timestamp is newer than the cache, so that's also part of the reasons why it gets invalidated.To fix this,
rust-cache
might have to:cc
,compiler_builtins
target
to latest (after it recovers$CARGO_HOME
)This would also help in other scenario where
target
actually contains latest cache however due to timestamp is rebuilt.The text was updated successfully, but these errors were encountered: