From 0564365ff3c7ec47237f828c72fbf985535e0459 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 2 Mar 2024 20:39:19 -0600 Subject: [PATCH] chore(ci): Ensure lockfile is respected during MSRV testing 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 - https://github.com/taiki-e/cargo-hack/issues/234 - https://github.com/taiki-e/cargo-hack/pull/236 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 249faea5c71..3f68682cf5a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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