-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bumping knative.dev/hack 7e71024...47368d6: > 47368d6 Check licenses only, but not bundle them (# 376) > b985a5b Update community files (# 377) Signed-off-by: Knative Automation <[email protected]>
- Loading branch information
1 parent
1ca1f09
commit 0710f7d
Showing
4 changed files
with
6 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -772,8 +772,8 @@ function __go_update_deps_for_module() { | |
remove_broken_symlinks ./vendor | ||
fi | ||
|
||
group "Updating licenses" | ||
update_licenses third_party/VENDOR-LICENSE "./..." | ||
group "Checking licenses" | ||
check_licenses | ||
) | ||
} | ||
|
||
|
@@ -809,18 +809,6 @@ function run_kntest() { | |
go_run knative.dev/test-infra/tools/kntest/cmd/kntest@latest "$@" | ||
} | ||
|
||
# Run go-licenses to update licenses. | ||
# Parameters: $1 - output file, relative to repo root dir. | ||
# $2 - directory to inspect. | ||
function update_licenses() { | ||
local dst=$1 | ||
local dir=$2 | ||
shift | ||
go_run github.com/google/[email protected] \ | ||
save "${dir}" --save_path="${dst}" --force || \ | ||
{ echo "--- FAIL: go-licenses failed to update licenses"; return 1; } | ||
} | ||
|
||
# Run go-licenses to check for forbidden licenses. | ||
function check_licenses() { | ||
# Check that we don't have any forbidden licenses. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters