docs: improve FAQ about Go versions (#5046)

This commit is contained in:
Ludovic Fernandez 2024-09-28 14:26:51 +02:00 committed by GitHub
parent 46db787df4
commit 75f4396c4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,11 @@ title: FAQ
The same as the Go team (the 2 latest minor versions). The same as the Go team (the 2 latest minor versions).
Basically, golangci-lint supports Go versions lower or equal to the Go version used to compile it.
New versions of Go are not automatically supported because, in addition of the Go version used to build it,
some linters and/or internal pieces of golangci-lint could need to be adapted to support this new Go version.
## How to use `golangci-lint` in CI ## How to use `golangci-lint` in CI
Run `golangci-lint` in CI and check the exit code. If it's non-zero - fail the build. Run `golangci-lint` in CI and check the exit code. If it's non-zero - fail the build.