Skip to content

Commit 1ce09fd

Browse files
authored
Use cargo outdated fork to workaround its outdated dependencies. (#292)
While there, re-enable cargo audit now that it supports Cargo lockfile v4. Signed-off-by: Piotr Sikora <[email protected]>
1 parent 597634d commit 1ce09fd

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/rust.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,12 @@ jobs:
312312
./rustup-init.sh -y
313313
rm rustup-init.sh
314314
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
315-
export PATH=$PATH:$HOME/.cargo/bin
316-
cargo install cargo-outdated
317315
318316
- name: Run cargo outdated
319-
run: cargo outdated --root-deps-only --exit-code 1
317+
run: |
318+
# TODO: Switch back to the official version once it supports Cargo lockfile v4.
319+
cargo install --git https://github.com/MonterraByte/cargo-outdated.git --branch cargo-update
320+
cargo outdated --root-deps-only --exit-code 1
320321
321322
audit:
322323
runs-on: ubuntu-latest
@@ -420,9 +421,10 @@ jobs:
420421
if: ${{ !env.ACT }}
421422
run: cargo audit
422423

423-
- name: Run cargo outdated
424-
if: ${{ !env.ACT }}
425-
run: cargo outdated --root-deps-only --exit-code 1
424+
# TODO: Re-enable once cargo outdated supports Cargo lockfile v4.
425+
#- name: Run cargo outdated
426+
# if: ${{ !env.ACT }}
427+
# run: cargo outdated --root-deps-only --exit-code 1
426428

427429
- name: Validate Envoy config
428430
run: |
@@ -503,10 +505,9 @@ jobs:
503505
- name: Format (manifest)
504506
run: cargo verify-project
505507

506-
# TODO: Re-enable once cargo audit supports Cargo lockfile v4.
507-
#- name: Run cargo audit
508-
# if: ${{ !env.ACT }}
509-
# run: cargo audit
508+
- name: Run cargo audit
509+
if: ${{ !env.ACT }}
510+
run: cargo audit
510511

511512
# TODO: Re-enable once cargo outdated supports Cargo lockfile v4.
512513
#- name: Run cargo outdated

0 commit comments

Comments
 (0)