Remove go versions from .golangci.yml (#2775)

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.

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
silverwind 2023-11-07 20:29:37 +01:00 committed by GitHub
parent 9d5ef117a2
commit 872fea0e14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,6 @@ linters-settings:
misspell: misspell:
locale: US locale: US
gofumpt: gofumpt:
lang-version: '1.21'
extra-rules: true extra-rules: true
forbidigo: forbidigo:
forbid: forbid:
@ -37,7 +36,6 @@ linters:
run: run:
timeout: 5m timeout: 5m
go: '1.21'
issues: issues:
exclude-rules: exclude-rules: