From 19d52cbd6dcd9ab897f6cab30ccdb366d01928b5 Mon Sep 17 00:00:00 2001 From: Diogo Mendes Matsubara Date: Fri, 20 Sep 2024 09:07:09 +0200 Subject: [PATCH] fix: disable panic for zenoh-c opaque-types Rectifying the cargo lockfile with cargo clippy using all features causes an error. Remove the panic from the list before checking --- .github/workflows/sync-lockfiles.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-lockfiles.yml b/.github/workflows/sync-lockfiles.yml index fb69846..73def0e 100644 --- a/.github/workflows/sync-lockfiles.yml +++ b/.github/workflows/sync-lockfiles.yml @@ -107,9 +107,12 @@ jobs: # the dependency versions fetched from source. run: cargo clippy --manifest-path ${{ steps.crate-path.outputs.value }}/Cargo.toml --all-targets --all-features -- --deny warnings - - name: Rectify lockfile for zenoh-c build-resources + - name: Rectify lockfile for zenoh-c opaque-types if: ${{ matrix.dependant == 'zenoh-c' }} - run: cargo clippy --manifest-path build-resources/opaque-types/Cargo.toml --all-targets --all-features -- --deny warnings + # Disable panic feature for zenoh-c opaque-types + run: | + features=$(cargo tree --manifest-path build-resources/opaque-types/Cargo.toml -f "{p} {f}" --all-features| grep opaque-types | cut -d" " -f4 | sed s/panic,//) + cargo clippy --manifest-path build-resources/opaque-types/Cargo.toml --all-targets --features $features -- --deny warnings - name: cargo update ${{ matrix.dependant }} run: cargo update zenoh --manifest-path ${{ steps.crate-path.outputs.value }}/Cargo.toml