Skip to content

Commit d835bb2

Browse files
committed
CI: try to produce a minimal version of the .lock file
Otherwise we get an error: > lock file version `4` was found, but this version of Cargo does not understand this lock file"
1 parent 6ff81a4 commit d835bb2

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/rust.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ jobs:
2727

2828
steps:
2929
- uses: actions/checkout@v3
30-
- name: Install nightly for minimal-versions
30+
- name: Install old nightly for minimal-versions (produces v3 lockfile)
3131
if: matrix.rust == '1.65.0'
32-
uses: dtolnay/rust-toolchain@nightly
32+
uses: dtolnay/rust-toolchain@stable
33+
with:
34+
toolchain: nightly-2024-02-01
3335
- name: Generate minimal-versions lockfile
3436
if: matrix.rust == '1.65.0'
35-
run: cargo +nightly -Z minimal-versions generate-lockfile
37+
run: cargo +nightly-2024-02-01 -Z minimal-versions generate-lockfile
3638
- uses: dtolnay/rust-toolchain@stable
3739
with:
3840
toolchain: ${{ matrix.rust }}

0 commit comments

Comments
 (0)