Description
EDIT: since v1.56.0 golangci supports go1.22 🎉
Is golangci-lint support go1.22?
No, and yes.
Basically, golangci-lint supports Go versions lower or equal to the Go version used to build it.
Go version (build) | Supported Go versions (code) | Not supported Go versions (code) |
---|---|---|
go1.21 | <= go1.21 (go1.21, go1.20, etc.) | > go1.21 (go1.22, go1.23, etc.) |
go1.20 | <= go1.20 (go1.20, go1.19, etc.) | > go1.20 (go1.21, go1.22, etc.) |
The current binaries from the releases page and the Docker images have been built with go1.21 and will be built with go1.21 as long as go1.22 is not GA.
So those binaries/images don't support go1.22 (new elements and internal Go changes).
https://golangci-lint.run/usage/faq/#which-go-versions-are-supported
In addition, of the Go version used to build it, some linters could need to be updated to support newer versions of Go, and internal pieces of golangci-lint could also need to be updated.
You can follow the PR #4272 to see the progress on this topic.
Sponsoring is a good way to sustain open source maintainers: sponsor me