Skip to content

Commit 2e6af43

Browse files
authored
Remove go versions from .golangci.yml (#27953)
1. `linter.lang-version` is deprecated in favor of `run.go` 2. `run.go` defaults to the version in `go.mod` as per [docs](https://golangci-lint.run/usage/configuration/#run-configuration): ```yaml # Define the Go version limit. # Mainly related to generics support since go1.18. # Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.18 go: '1.19' ``` So in summary, we don't need these versions in the file as long as we keep the version in go.mod bumped.
1 parent 10a6ebb commit 2e6af43

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

.golangci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ linters:
2929
fast: false
3030

3131
run:
32-
go: "1.21"
3332
timeout: 10m
3433
skip-dirs:
3534
- node_modules
@@ -75,7 +74,6 @@ linters-settings:
7574
- name: modifies-value-receiver
7675
gofumpt:
7776
extra-rules: true
78-
lang-version: "1.21"
7977
depguard:
8078
rules:
8179
main:

0 commit comments

Comments
 (0)