Compare commits

...

3 Commits

Author SHA1 Message Date
Tommy G 93f6068561
Merge 8d70dfb799 into 3624ceb22c 2024-10-08 15:39:18 -04:00
Tommy G 8d70dfb799
Merge branch 'main' into main 2023-07-18 08:30:27 +10:00
Tommy G d53778de5f
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.
2023-05-04 16:33:36 +10:00
1 changed files with 1 additions and 0 deletions

View File

@ -592,6 +592,7 @@ whenever possible:
- uses: actions/cache@v4 - uses: actions/cache@v4
with: with:
path: | path: |
~/.cargo/.crates.toml
~/.cargo/bin/ ~/.cargo/bin/
~/.cargo/registry/index/ ~/.cargo/registry/index/
~/.cargo/registry/cache/ ~/.cargo/registry/cache/