From 1ce09fdd0a3eede1ee693252bf1c229e7b69f2e9 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 2 Dec 2024 08:50:09 -0500 Subject: [PATCH] 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 --- .github/workflows/rust.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 76bd798..4087b15 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 @@ -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: | @@ -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