2
0

fix: unset GOEXPERIMENT for linter compatibility

The jsonv2 experiment may not be available in all Go versions.
Unset GOEXPERIMENT along with GOTOOLCHAIN=local for the linter.

🤖 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:33:32 -05:00
parent 72cf0e0ddc
commit c25fa49e01

View File

@@ -377,11 +377,11 @@ lint-spell-fix: ## lint spelling and fix issues
.PHONY: lint-go
lint-go: ## lint go files
GOTOOLCHAIN=local $(GO) run $(GOLANGCI_LINT_PACKAGE) run
GOEXPERIMENT= GOTOOLCHAIN=local $(GO) run $(GOLANGCI_LINT_PACKAGE) run
.PHONY: lint-go-fix
lint-go-fix: ## lint go files and fix issues
GOTOOLCHAIN=local $(GO) run $(GOLANGCI_LINT_PACKAGE) run --fix
GOEXPERIMENT= 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