From 4b4d6b8cf819a948e4c5e7e2c4d40b93fce737f4 Mon Sep 17 00:00:00 2001 From: Kai Hudalla Date: Tue, 29 Oct 2024 08:54:44 +0100 Subject: [PATCH] Exclude dev and build deps from license check Dependencies that are only used during build and/or development time do not need to be included in the license compatibility check. --- .github/workflows/check-dependencies.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-dependencies.yaml b/.github/workflows/check-dependencies.yaml index a8e8f6b..e14cef7 100644 --- a/.github/workflows/check-dependencies.yaml +++ b/.github/workflows/check-dependencies.yaml @@ -35,11 +35,12 @@ jobs: - name: Determine list of 3rd party Rust dependencies working-directory: ${{github.workspace}} run: | - cargo tree --manifest-path components/Cargo.toml -e normal --prefix none --no-dedupe --locked \ + cargo tree --manifest-path components/Cargo.toml -e no-build,no-dev --prefix none --no-dedupe --locked \ | sort -u \ | grep -v '^[[:space:]]*$' \ | grep -v fms- \ | grep -v influx-client \ + | grep -v zenoh \ | sed -E 's|([^ ]+) v([^ ]+).*|crate/cratesio/-/\1/\2|' \ > DEPS.txt - name: Set up JDK