Skip to content

Commit b7cf264

Browse files
iglocskaclaude
andcommitted
fix: [ci] Use Cargo.toml instead of Cargo.lock for cache key
Cargo.lock is gitignored (library crate convention), so hashFiles fails on CI. Use Cargo.toml hash instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0d7eb18 commit b7cf264

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
~/.cargo/registry
2424
~/.cargo/git
2525
target
26-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
26+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
2727
restore-keys: ${{ runner.os }}-cargo-
2828

2929
- name: Build
@@ -82,7 +82,7 @@ jobs:
8282
~/.cargo/registry
8383
~/.cargo/git
8484
target
85-
key: ${{ runner.os }}-cargo-integ-${{ hashFiles('**/Cargo.lock') }}
85+
key: ${{ runner.os }}-cargo-integ-${{ hashFiles('**/Cargo.toml') }}
8686
restore-keys: ${{ runner.os }}-cargo-integ-
8787

8888
- name: Build integration tests

0 commit comments

Comments
 (0)