You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, golangci-lint supports Go versions that are lower or equal to the Go version used to build it.
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.
The current binaries from the releases page and the Docker images have been built with go1.23 and will be built with go1.23 as long as go1.24 is not GA.
So those binaries/images don't support go1.24 (new elements and internal Go changes).
---
title: Is golangci-lint support go1.24?
---
flowchart
A([compiled with go1.24?]) -- yes --> B([needs update of the internals of golangci-lint?])
A -- no --> C((NO))
B -- yes --> D([uses right internal pieces?])
B -- no --> E((YES))
D -- yes --> G((YES))
D -- no --> F((NO))
Loading
You can follow the PR #5224 to see the progress on this topic.
Some package systems (like homebrew, nix, etc.) are "slow" in propagating the new Go version.
After a new release of Go and golangci-lint, those systems can use an old Go version to compile golangci-lint resulting in a non-working binary (high memory usage, missing symbol, etc.).
In this situation, you should use the official binaries, or compile golangci-lint manually with the right Go version, or help these package systems to support this new Go version.
We are not responsible for package systems that don't use official binaries.
To validate the Go version used to compile: golangci-lint version
$ golangci-lint version golangci-lint has version 1.61.0 built with go1.23.1 from a1d6c560 on 2024-09-09T17:44:42Z
golangci-lint is a free and open-source project built by volunteers.
If you value it, please consider donating or asking your company to do so, we appreciate it! ❤️
Does it change anything in terms of recommendations for installing golangci-lint from sources here? I think it would be nice to have all tools (linters, formatters, code generations, etc.) in a single place, so everyone in a team could use the same toolset, regardless of the package manager and operating system.
Does it change anything in terms of recommendations for installing golangci-lint from sources here?
No, it doesn't change the core of the problem, it will just increase the problems.
The arguments inside the doc are even more than accurate with this new command because, for example, it will merge the dependencies of your projects with the dependencies of the tools.
If you install golang.org/x/tools/cmd/stringer you will have 3 indirect dependencies that golangci-lint uses.
Is golangci-lint support go1.24?
No, and yes.
Basically, golangci-lint supports Go versions that are lower or equal to the Go version used to build it.
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.
The current binaries from the releases page and the Docker images have been built with go1.23 and will be built with go1.23 as long as go1.24 is not GA.
So those binaries/images don't support go1.24 (new elements and internal Go changes).
https://golangci-lint.run/welcome/faq/#which-go-versions-are-supported
You can follow the PR #5224 to see the progress on this topic.
https://go.dev/wiki/Go-Release-Cycle
Additional Notes
Some package systems (like homebrew, nix, etc.) are "slow" in propagating the new Go version.
After a new release of Go and golangci-lint, those systems can use an old Go version to compile golangci-lint resulting in a non-working binary (high memory usage, missing symbol, etc.).
In this situation, you should use the official binaries, or compile golangci-lint manually with the right Go version, or help these package systems to support this new Go version.
We are not responsible for package systems that don't use official binaries.
To validate the Go version used to compile:
golangci-lint version
golangci-lint
is a free and open-source project built by volunteers.If you value it, please consider donating or asking your company to do so, we appreciate it! ❤️
The text was updated successfully, but these errors were encountered: