Skip to content

Commit 3238138

Browse files
✨ (go/v4) Upgrade to use golang-lint v2.5.0 (#5128)
Upgrade to use golang-lint v3.5.0
1 parent db90fb7 commit 3238138

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ GOLANGCI_LINT ?= $(LOCALBIN)/golangci-lint
233233

234234
## Tool Versions
235235
GO_APIDIFF_VERSION ?= v0.6.1
236-
GOLANGCI_LINT_VERSION ?= v2.3.0
236+
GOLANGCI_LINT_VERSION ?= v2.5.0
237237

238238
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
239239
# $1 - target path with name of binary

docs/book/src/cronjob-tutorial/testdata/project/.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- name: Run linter
2121
uses: golangci/golangci-lint-action@v8
2222
with:
23-
version: v2.4.0
23+
version: v2.5.0

docs/book/src/cronjob-tutorial/testdata/project/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ CONTROLLER_TOOLS_VERSION ?= v0.19.0
197197
ENVTEST_VERSION ?= $(shell go list -m -f "{{ .Version }}" sigs.k8s.io/controller-runtime | awk -F'[v.]' '{printf "release-%d.%d", $$2, $$3}')
198198
#ENVTEST_K8S_VERSION is the version of Kubernetes to use for setting up ENVTEST binaries (i.e. 1.31)
199199
ENVTEST_K8S_VERSION ?= $(shell go list -m -f "{{ .Version }}" k8s.io/api | awk -F'[v.]' '{printf "1.%d", $$3}')
200-
GOLANGCI_LINT_VERSION ?= v2.4.0
200+
GOLANGCI_LINT_VERSION ?= v2.5.0
201201

202202
.PHONY: kustomize
203203
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.

docs/book/src/getting-started/testdata/project/.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- name: Run linter
2121
uses: golangci/golangci-lint-action@v8
2222
with:
23-
version: v2.4.0
23+
version: v2.5.0

docs/book/src/getting-started/testdata/project/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ CONTROLLER_TOOLS_VERSION ?= v0.19.0
193193
ENVTEST_VERSION ?= $(shell go list -m -f "{{ .Version }}" sigs.k8s.io/controller-runtime | awk -F'[v.]' '{printf "release-%d.%d", $$2, $$3}')
194194
#ENVTEST_K8S_VERSION is the version of Kubernetes to use for setting up ENVTEST binaries (i.e. 1.31)
195195
ENVTEST_K8S_VERSION ?= $(shell go list -m -f "{{ .Version }}" k8s.io/api | awk -F'[v.]' '{printf "1.%d", $$3}')
196-
GOLANGCI_LINT_VERSION ?= v2.4.0
196+
GOLANGCI_LINT_VERSION ?= v2.5.0
197197

198198
.PHONY: kustomize
199199
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.

docs/book/src/multiversion-tutorial/testdata/project/.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- name: Run linter
2121
uses: golangci/golangci-lint-action@v8
2222
with:
23-
version: v2.4.0
23+
version: v2.5.0

docs/book/src/multiversion-tutorial/testdata/project/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ CONTROLLER_TOOLS_VERSION ?= v0.19.0
197197
ENVTEST_VERSION ?= $(shell go list -m -f "{{ .Version }}" sigs.k8s.io/controller-runtime | awk -F'[v.]' '{printf "release-%d.%d", $$2, $$3}')
198198
#ENVTEST_K8S_VERSION is the version of Kubernetes to use for setting up ENVTEST binaries (i.e. 1.31)
199199
ENVTEST_K8S_VERSION ?= $(shell go list -m -f "{{ .Version }}" k8s.io/api | awk -F'[v.]' '{printf "1.%d", $$3}')
200-
GOLANGCI_LINT_VERSION ?= v2.4.0
200+
GOLANGCI_LINT_VERSION ?= v2.5.0
201201

202202
.PHONY: kustomize
203203
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.

pkg/plugins/golang/v4/scaffolds/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import (
3939

4040
const (
4141
// GolangciLintVersion is the golangci-lint version to be used in the project
42-
GolangciLintVersion = "v2.4.0"
42+
GolangciLintVersion = "v2.5.0"
4343
// ControllerRuntimeVersion is the kubernetes-sigs/controller-runtime version to be used in the project
4444
ControllerRuntimeVersion = "v0.22.1"
4545
// ControllerToolsVersion is the kubernetes-sigs/controller-tools version to be used in the project

testdata/project-v4-multigroup/.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
- name: Run linter
2121
uses: golangci/golangci-lint-action@v8
2222
with:
23-
version: v2.4.0
23+
version: v2.5.0

testdata/project-v4-multigroup/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ CONTROLLER_TOOLS_VERSION ?= v0.19.0
193193
ENVTEST_VERSION ?= $(shell go list -m -f "{{ .Version }}" sigs.k8s.io/controller-runtime | awk -F'[v.]' '{printf "release-%d.%d", $$2, $$3}')
194194
#ENVTEST_K8S_VERSION is the version of Kubernetes to use for setting up ENVTEST binaries (i.e. 1.31)
195195
ENVTEST_K8S_VERSION ?= $(shell go list -m -f "{{ .Version }}" k8s.io/api | awk -F'[v.]' '{printf "1.%d", $$3}')
196-
GOLANGCI_LINT_VERSION ?= v2.4.0
196+
GOLANGCI_LINT_VERSION ?= v2.5.0
197197

198198
.PHONY: kustomize
199199
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary.

0 commit comments

Comments
 (0)