🌱 add Go 1.26 support with golangci-lint v2.12.2 - #225
Conversation
WalkthroughThis PR adds Go 1.26+ support to the golangci-lint tooling by mapping Go 1.26 and later to golangci-lint v2.12.2. The compatibility mapping is documented and implemented in ChangesGo 1.26+ golangci-lint version support
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Update both lint scripts to use golangci-lint v2.12.2 for Go 1.26+ projects. golangci-lint v2.12.2 is built with Go 1.26.2 and can lint Go 1.26 code. Previous versions (v2.8.0) were built with Go 1.25 and fail with: 'the Go language version used to build golangci-lint is lower than the targeted Go version' Version mapping: - Go 1.26+ -> golangci-lint v2.12.2 - Go 1.24-1.25 -> golangci-lint v2.8.0 - Go 1.23 -> golangci-lint v2.3.1 Signed-off-by: Tesshu Flower <tflower@redhat.com>
7ff09c9 to
0510341
Compare
|
Actionable comments posted: 0 |
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tesshuflower, xuezhaojun The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
3ea63fb
into
open-cluster-management-io:main
Updates both lint scripts to use golangci-lint v2.12.2 for Go 1.26+ projects.
golangci-lint v2.12.2 is built with Go 1.26.2 and supports linting Go 1.26 code.
Version mapping:
Summary by CodeRabbit