Skip to content

Commit 97960f3

Browse files
committed
Fix license checks GOTOOLCHAIN setting
1 parent b3af7ff commit 97960f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ build-licenses.csv: go.mod ## Track licenses in a CSV file
163163
@echo "========================================"
164164
export GOOS=linux
165165
export GOARCH=amd64
166+
export GOTOOLCHAIN=local
166167
go run github.com/google/$(GO_LICENSES)@v$(GO_LICENSES_VERSION) csv --include_tests $(BASE_GO_PACKAGE)/... > licenses.csv
167168
echo $(GOMOD_SHA) > $(LICENSES_GOMOD_SHA_FILE)
168169

@@ -182,6 +183,7 @@ check-licenses: licenses-up-to-date ## Check licenses are compliant with our res
182183
@echo "============================================"
183184
export GOOS=linux
184185
export GOARCH=amd64
186+
export GOTOOLCHAIN=local
185187
go run github.com/google/$(GO_LICENSES)@v$(GO_LICENSES_VERSION) check --include_tests \
186188
--disallowed_types $(DISALLOWED_LICENSES) $(BASE_GO_PACKAGE)/...
187189
@echo "--------------------"

0 commit comments

Comments
 (0)