Skip to content

Commit 355f2b3

Browse files
committed
CI: lock cargo-cache to use the same deps as the project to avoid rust compiler incompatibilities
1 parent 7d7cd16 commit 355f2b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ jobs:
3939
components: rustfmt, clippy
4040

4141
- name: Install cargo-cache
42-
run: cargo install cargo-cache
42+
# Use --locked to pin to the exact dependency versions in cargo-cache's Cargo.lock
43+
# This prevents pulling in newer transitive dependencies (like home@0.5.12)
44+
# that require rustc 1.88, ensuring compatibility with our rustc 1.86 toolchain
45+
run: cargo install cargo-cache --locked
4346

4447
- uses: actions/cache@v3
4548
with:

0 commit comments

Comments
 (0)