Skip to content

Commit

Permalink
fix: disable panic for zenoh-c opaque-types
Browse files Browse the repository at this point in the history
Rectifying the cargo lockfile with cargo clippy using all features
causes an error. Remove the panic from the list before checking
  • Loading branch information
diogomatsubara committed Sep 20, 2024
1 parent 40e62a9 commit 19d52cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/sync-lockfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19d52cb

Please sign in to comment.