Skip to content

Commit

Permalink
chore(ci): Ensure lockfile is respected during MSRV testing
Browse files Browse the repository at this point in the history
As a hack in cargo-hack, it doesn't respect lockfiles when doing MSRV
testing unless `--locked` is passed in.
This adds that so we make sure we don't run into problems with newer,
MSRV-imcompatible dependencies come out that break our build.

See
- https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/gix-ref.20CI.20error/near/423319798
- taiki-e/cargo-hack#234
- taiki-e/cargo-hack#236
  • Loading branch information
epage committed Mar 3, 2024
1 parent 3bb0697 commit 0564365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,4 +267,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --all-targets --rust-version --workspace --ignore-private
- run: cargo hack check --all-targets --rust-version --workspace --ignore-private --locked

0 comments on commit 0564365

Please sign in to comment.