Skip to content

Commit

Permalink
Check licenses of all packages, not only cmd (knative#381)
Browse files Browse the repository at this point in the history
* Check licenses of all packages, not only `cmd`

* Use check_licenses instead of dep-collector directly
  • Loading branch information
adrcunha authored and knative-prow-robot committed Jan 11, 2019
1 parent 89e4aae commit 9f92bca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/presubmit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,8 @@ function default_build_test_runner() {
./hack/verify-codegen.sh || failed=1
fi
# Check that we don't have any forbidden licenses in our images.
if [[ -d ./cmd ]]; then
subheader "Checking for forbidden licenses"
check_licenses ./cmd/* || failed=1
fi
subheader "Checking for forbidden licenses"
check_licenses $(go list ./...) || failed=1
return ${failed}
}

Expand Down

0 comments on commit 9f92bca

Please sign in to comment.