fix: unset GOEXPERIMENT for linter compatibility
Some checks failed
Build and Release / Build Binaries (amd64, darwin) (push) Has been cancelled
Build and Release / Build Binaries (amd64, linux) (push) Has been cancelled
Build and Release / Build Binaries (amd64, windows) (push) Has been cancelled
Build and Release / Build Binaries (arm64, darwin) (push) Has been cancelled
Build and Release / Build Binaries (arm64, linux) (push) Has been cancelled
Build and Release / Build Docker Image (push) Has been cancelled
Build and Release / Create Release (push) Has been cancelled
Build and Release / Lint and Test (push) Has been cancelled

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:
David H. Friedel Jr. 2026-01-09 16:33:32 -05:00
parent ee6daa73b4
commit 734a15cee9

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