From 3a29eda47a422b16d5a23f85afaec507134beb56 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 12 Aug 2025 10:35:19 -0700 Subject: [PATCH] CI: Fix lockfile verification The lockfile verification step wasn't work because it was running after other commands which would have updated the lockfile. This just moves it to the front, and no need for a separate step. --- .github/workflows/main.yml | 4 +--- Cargo.lock | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 19309bcd79..88c3c6c9f1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,12 +33,10 @@ jobs: - name: Install Rust (rustup) run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} shell: bash - - run: cargo test --no-default-features + - run: cargo test --no-default-features --locked - run: cargo test - run: cargo run -p systest - run: cargo test -p git2-curl - - name: Verify Cargo.lock is up-to-date - run: cargo update -p git2 --locked rustfmt: name: Rustfmt diff --git a/Cargo.lock b/Cargo.lock index 1c5498ccc9..d302b33c3b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -327,7 +327,7 @@ dependencies = [ [[package]] name = "git2-curl" -version = "0.21.0" +version = "0.22.0" dependencies = [ "curl", "git2",