Skip to content

Commit

Permalink
Restore freshness check for Cargo.raze.lock.
Browse files Browse the repository at this point in the history
It was removed in proxy-wasm#75, and while Cargo.raze.lock being outdated
was still caught as part of the cargo-raze format check, mixing
formatting and freshness checks resulted in confusing reporting.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
  • Loading branch information
PiotrSikora committed Feb 9, 2021
1 parent 0de24fd commit 605f2da
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ jobs:
- name: Format (cargo raze)
run: |
mv bazel/cargo/Cargo.raze.lock Cargo.lock
rm -rf bazel/cargo/
cargo install cargo-raze --version 0.9.2
cargo raze --generate-lockfile --output=bazel/cargo
cargo raze --output=bazel/cargo
mv Cargo.lock bazel/cargo/Cargo.raze.lock
git diff --exit-code
stable:
Expand Down Expand Up @@ -198,6 +200,12 @@ jobs:
- name: Run cargo outdated
run: cargo outdated --root-deps-only --exit-code 1

- name: Check freshness of bazel/cargo/Cargo.raze.lock
run: |
cargo generate-lockfile
mv Cargo.lock bazel/cargo/Cargo.raze.lock
git diff --exit-code
audit:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 605f2da

Please sign in to comment.