From d4b1937e744d4a75b22a73d0f11ed400fc8faf25 Mon Sep 17 00:00:00 2001 From: Matthias Wessendorf Date: Tue, 3 Sep 2024 10:47:35 +0200 Subject: [PATCH] Enforce go-licenses v1.0.0 This should fixes issues we are getting with `go.mod` files containing the `toolchain` directive. See google/go-licenses#128. Signed-off-by: Matthias Wessendorf --- library.sh | 2 +- test/unit/update_deps_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library.sh b/library.sh index 08f2dba1..e121f531 100755 --- a/library.sh +++ b/library.sh @@ -918,7 +918,7 @@ function run_kntest() { # Run go-licenses to check for forbidden licenses. function check_licenses() { # Check that we don't have any forbidden licenses. - go_run github.com/google/go-licenses@v1.6.0 \ + go_run github.com/google/go-licenses@v1.0.0 \ check "${REPO_ROOT_DIR}/..." || \ { echo "--- FAIL: go-licenses failed the license check"; return 1; } } diff --git a/test/unit/update_deps_test.go b/test/unit/update_deps_test.go index 85159236..5e73ed28 100644 --- a/test/unit/update_deps_test.go +++ b/test/unit/update_deps_test.go @@ -29,7 +29,7 @@ func TestUpdateDeps(t *testing.T) { contains("Checking licenses"), contains("Removing unwanted vendor files"), contains("👻 go mod tidy"), - contains("👻 go run github.com/google/go-licenses@v1.6.0 check"), + contains("👻 go run github.com/google/go-licenses@v1.0.0 check"), contains("👻 go mod download -x"), }, }, {