2
0

fix: use GOTOOLCHAIN=local for linter to use installed Go 1.25

Forces golangci-lint to use the locally installed Go version instead
of downloading Go 1.24.x, which avoids GOEXPERIMENT compatibility issues.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-09 16:32:18 -05:00
parent c066815bd3
commit 72cf0e0ddc

View File

@@ -377,11 +377,11 @@ lint-spell-fix: ## lint spelling and fix issues
.PHONY: lint-go
lint-go: ## lint go files
GOEXPERIMENT= $(GO) run $(GOLANGCI_LINT_PACKAGE) run
GOTOOLCHAIN=local $(GO) run $(GOLANGCI_LINT_PACKAGE) run
.PHONY: lint-go-fix
lint-go-fix: ## lint go files and fix issues
GOEXPERIMENT= $(GO) run $(GOLANGCI_LINT_PACKAGE) run --fix
GOTOOLCHAIN=local $(GO) run $(GOLANGCI_LINT_PACKAGE) run --fix
# workaround step for the lint-go-windows CI task because 'go run' can not
# have distinct GOOS/GOARCH for its build and run steps