Skip to content

Commit

Permalink
Use cargo outdated fork to workaround its outdated dependencies. (#292)
Browse files Browse the repository at this point in the history
While there, re-enable cargo audit now that it supports Cargo lockfile v4.

Signed-off-by: Piotr Sikora <[email protected]>
  • Loading branch information
PiotrSikora authored Dec 2, 2024
1 parent 597634d commit 1ce09fd
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,12 @@ jobs:
./rustup-init.sh -y
rm rustup-init.sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
export PATH=$PATH:$HOME/.cargo/bin
cargo install cargo-outdated
- name: Run cargo outdated
run: cargo outdated --root-deps-only --exit-code 1
run: |
# TODO: Switch back to the official version once it supports Cargo lockfile v4.
cargo install --git https://github.com/MonterraByte/cargo-outdated.git --branch cargo-update
cargo outdated --root-deps-only --exit-code 1
audit:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -420,9 +421,10 @@ jobs:
if: ${{ !env.ACT }}
run: cargo audit

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

- name: Validate Envoy config
run: |
Expand Down Expand Up @@ -503,10 +505,9 @@ jobs:
- name: Format (manifest)
run: cargo verify-project

# TODO: Re-enable once cargo audit supports Cargo lockfile v4.
#- name: Run cargo audit
# if: ${{ !env.ACT }}
# run: cargo audit
- name: Run cargo audit
if: ${{ !env.ACT }}
run: cargo audit

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

0 comments on commit 1ce09fd

Please sign in to comment.