Skip to content

Commit e2e1fbf

Browse files
unhappychoiceclaude
andcommitted
fix(ci): bump rust-cache prefix-key to invalidate stale cache
The cached ~/.cargo/bin/cargo was restored as rustup-init, causing `cargo build` to fail with "unexpected argument 'build'" on macOS. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
1 parent 84ac0a7 commit e2e1fbf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
components: rustfmt
2323
- uses: Swatinem/rust-cache@v2
2424
with:
25-
prefix-key: v1-rust
25+
prefix-key: v2-rust
2626
- run: cargo fmt --all -- --check
2727

2828
clippy:
@@ -35,7 +35,7 @@ jobs:
3535
components: clippy
3636
- uses: Swatinem/rust-cache@v2
3737
with:
38-
prefix-key: v1-rust
38+
prefix-key: v2-rust
3939
- run: cargo clippy --all-targets --all-features -- -D warnings
4040

4141
test:
@@ -48,7 +48,7 @@ jobs:
4848
components: llvm-tools-preview
4949
- uses: Swatinem/rust-cache@v2
5050
with:
51-
prefix-key: v1-rust
51+
prefix-key: v2-rust
5252
- name: Install cargo-llvm-cov
5353
uses: taiki-e/install-action@cargo-llvm-cov
5454
- name: Generate coverage report
@@ -71,7 +71,7 @@ jobs:
7171
- uses: dtolnay/rust-toolchain@stable
7272
- uses: Swatinem/rust-cache@v2
7373
with:
74-
prefix-key: v1-rust
74+
prefix-key: v2-rust
7575
- run: cargo build --release
7676

7777
nix-build:

0 commit comments

Comments
 (0)