From 6a248f451c58a06f3421567d3f97bb9a4988ea90 Mon Sep 17 00:00:00 2001 From: Thomas Maas Date: Mon, 22 Jun 2026 10:52:34 +0200 Subject: [PATCH 1/3] Bump golangci-lint to v2.12 for Go 1.26 support Signed-off-by: Thomas Maas --- .github/workflows/lint.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e2bb3d8..cc17426 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,4 +20,4 @@ jobs: - name: Run linter uses: golangci/golangci-lint-action@v9 with: - version: v2.6 + version: v2.12 diff --git a/Makefile b/Makefile index a5f0ce4..8222d7a 100644 --- a/Makefile +++ b/Makefile @@ -246,7 +246,7 @@ CONTROLLER_TOOLS_VERSION ?= v0.18.0 ENVTEST_VERSION ?= $(shell go list -m -f "{{ .Version }}" sigs.k8s.io/controller-runtime | awk -F'[v.]' '{printf "release-%d.%d", $$2, $$3}') #ENVTEST_K8S_VERSION is the version of Kubernetes to use for setting up ENVTEST binaries (i.e. 1.31) ENVTEST_K8S_VERSION ?= $(shell go list -m -f "{{ .Version }}" k8s.io/api | awk -F'[v.]' '{printf "1.%d", $$3}') -GOLANGCI_LINT_VERSION ?= v2.1.0 +GOLANGCI_LINT_VERSION ?= v2.12.2 .PHONY: kustomize kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary. From a90bccb8deb8d40c02ff6674f61c53538ab5a781 Mon Sep 17 00:00:00 2001 From: Thomas Maas Date: Mon, 22 Jun 2026 12:30:17 +0200 Subject: [PATCH 2/3] Exclude goconst from test files Signed-off-by: Thomas Maas --- .golangci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index e5b21b0..fbac0d4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -36,6 +36,9 @@ linters: - dupl - lll path: internal/* + - linters: + - goconst + path: _test\.go paths: - third_party$ - builtin$ From 89b1090a06388b6b2ef994d59e2ebce5978758c0 Mon Sep 17 00:00:00 2001 From: Thomas Maas Date: Mon, 22 Jun 2026 13:46:07 +0200 Subject: [PATCH 3/3] Disable goconst linter Signed-off-by: Thomas Maas --- .golangci.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index fbac0d4..389995b 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -8,7 +8,6 @@ linters: - dupl - errcheck - ginkgolinter - - goconst - gocyclo - govet - ineffassign @@ -36,9 +35,6 @@ linters: - dupl - lll path: internal/* - - linters: - - goconst - path: _test\.go paths: - third_party$ - builtin$