mirror of
https://github.com/Swatinem/rust-cache
synced 2026-02-07 11:32:15 +00:00
fix: cache key dependency on installed packages
Add the installed packages to the environment element of the cache key so that CI tooling is considered. This ensures that rust CI tooling is cached correctly when changes occur. Prior to this a manual key change or cache expiry would need to occur before CI tools were correctly cached.
This commit is contained in:
parent
127a0e9568
commit
535f5f8f1c
4 changed files with 28 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ This cache is automatically keyed by:
|
|||
- the value of some compiler-specific environment variables (eg. RUSTFLAGS, etc), and
|
||||
- a hash of all `Cargo.lock` / `Cargo.toml` files found anywhere in the repository (if present).
|
||||
- a hash of all `rust-toolchain` / `rust-toolchain.toml` files in the root of the repository (if present).
|
||||
- a hash of installed packages as generated by `cargo install --list`.
|
||||
|
||||
An additional input `key` can be provided if the builtin keys are not sufficient.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue