Skip to content

Commit e7c01f9

Browse files
committed
Bump Go to 1.23, remove deprecated linter
1 parent ab6e491 commit e7c01f9

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

.github/workflows/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
labeler.yml
1919
sparse-checkout-cone-mode: false
2020
repository: nginxinc/k8s-common
21+
2122
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
2223
with:
2324
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Lint Go
3333
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
3434
with:
35-
version: v1.60.2 # renovate: datasource=github-releases depName=golangci/golangci-lint
35+
version: v1.60.2 # renovate: datasource=github-tags depName=golangci/golangci-lint
3636

3737
actionlint:
3838
name: Actionlint

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ linters:
3535
- asciicheck
3636
- bidichk
3737
- contextcheck
38+
- copyloopvar
3839
- dupword
3940
- durationcheck
4041
- errcheck
4142
- errchkjson
4243
- errname
4344
- errorlint
44-
- exportloopref
4545
- fatcontext
4646
- forcetypeassert
4747
- gocheckcompilerdirectives

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ repos:
6767

6868
ci:
6969
skip: [golangci-lint-full]
70+
autoupdate_schedule: quarterly # We use renovate for more frequent updates and there's no way to disable autoupdate

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.DEFAULT_GOAL := build-goreleaser
2-
# renovate: datasource=github-releases depName=golangci/golangci-lint
2+
# renovate: datasource=github-tags depName=golangci/golangci-lint
33
GOLANGCI_LINT_VERSION = v1.60.2
44

55
.PHONY: test

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/nginxinc/nginx-asg-sync
22

3-
go 1.22.5
3+
go 1.23.0
44

55
require (
66
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible

0 commit comments

Comments
 (0)