mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-12-23 12:36:01 +01:00
Include .crates.toml in Rust example
Using the existing example, cargo install will error out after restoring a cache: ``` cargo install cargo-tarpaulin Updating crates.io index error: binary `cargo-tarpaulin` already exists in destination Add --force to overwrite Error: Process completed with exit code 101. ``` `--force` is undesirable because it will recompile the binary. Cargo is scared of the existing binary because it doesn't have enough information about it. Including `~/.cargo/.crates.toml` coaxes it into being okay with the situation.
This commit is contained in:
parent
04f198bf0b
commit
d53778de5f
1 changed files with 1 additions and 0 deletions
|
@ -591,6 +591,7 @@ whenever possible:
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
~/.cargo/.crates.toml
|
||||||
~/.cargo/bin/
|
~/.cargo/bin/
|
||||||
~/.cargo/registry/index/
|
~/.cargo/registry/index/
|
||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
|
|
Loading…
Reference in a new issue