From f400a6f6cd85245aa8f34052c9991b1978d6094f Mon Sep 17 00:00:00 2001 From: wcollins Date: Tue, 24 Feb 2026 19:42:33 -0500 Subject: [PATCH 1/2] fix: align go-licenses version to v2 in CI --- .github/workflows/premerge.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml index e83e5a3d..06364015 100644 --- a/.github/workflows/premerge.yaml +++ b/.github/workflows/premerge.yaml @@ -22,7 +22,7 @@ jobs: go-version: stable - name: Install go-licenses - run: go install github.com/google/go-licenses@latest + run: go install github.com/google/go-licenses/v2@latest - name: Run make test run: make test From 004ff990a4584a23fe90aeb3ba4915e9406506cc Mon Sep 17 00:00:00 2001 From: wcollins Date: Tue, 24 Feb 2026 19:42:36 -0500 Subject: [PATCH 2/2] fix: use ./... package pattern in licenses target --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1ef9137f..6707a74a 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ install: ## licenses: Ensure license headers exist and generate NOTICE file licenses: @echo "Checking license headers and generating NOTICE file..." - @go-licenses report . \ + @go-licenses report ./... \ --template ./scripts/license-attributions/template.tpl \ --ignore github.com/itential > NOTICE @go run ./scripts/copyrighter/main.go