Repository navigation
ci: use latest golangci-lint - #77
Merged
Merged
Conversation
golangci-lint v2.12 does not support Go 1.27, which is what "go-version: stable" now resolves to, so the lint job fails on every PR with typecheck errors in the standard library: .../src/crypto/internal/randutil/randutil.go:11:2: could not import math/rand/v2 (.../src/math/rand/v2/rand.go:213:17: method must have no type parameters) (typecheck) The golangci-lint version has to be bumped manually (dependabot does not do that), while the Go version changes as soon as a new release is out. Instead of pinning, let golangci-lint-action use the latest v2 release, which is currently v2.14.0 (Go 1.27 support was added in v2.13.0). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Contributor
Author
|
This is CI only and fixes CI for other PRs, so I'm merging it without approvals from other maintainers. |
AkihiroSuda
approved these changes
Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
golangci-lint v2.12 does not support Go 1.27, which is what
go-version: stablenow resolves to, so the lint job fails on every PR with typecheck errors in the standard library (see e.g. this run):The golangci-lint version has to be bumped manually (dependabot does not do that), while the Go version changes as soon as a new release is out. Instead of pinning, let golangci-lint-action use the latest v2 release, which is currently v2.14.0 (Go 1.27 support was added in v2.13.0).