ENG-4369: Update golangci-lint to 2.11.3 via mise#473
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Modver resultThis report was generated by Modver, This PR does not require a change in your module’s version number. |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on updating the golangci-lint version to 2.11.3 and integrating it with the mise tool manager. This ensures consistent linting across environments and resolves linting failures introduced by the new version. The changes also streamline the CI workflow by using Highlights
Ignored Files
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request aims to update golangci-lint and manage tool versions using mise. However, the current configuration in mise.toml uses latest for both Go and golangci-lint, which has resulted in the mise.lock file pointing to non-existent versions (1.26.1 for Go and 2.11.3 for golangci-lint). This is a critical issue that will cause the build to fail because the tool binaries cannot be downloaded. I have added review comments on mise.toml with suggestions to pin to specific, existing versions. After applying these changes, the mise.lock file will need to be regenerated. Once the tool versions are corrected, please also re-verify that the removed //nolint:gosec directives are indeed stale with the correct version of golangci-lint.
| ] | ||
|
|
||
| [tools] | ||
| go = "latest" |
There was a problem hiding this comment.
Using latest for the Go toolchain has resolved to version 1.26.1 in mise.lock, which is a non-existent version of Go. This will cause mise install to fail as the download URL will result in a 404 error. Please pin to a specific, existing version of Go, for example the latest stable version.
| go = "latest" | |
| go = "1.22" |
|
|
||
| [tools] | ||
| go = "latest" | ||
| "github:golangci/golangci-lint" = "latest" |
There was a problem hiding this comment.
Using latest for golangci-lint has resolved to version 2.11.3 in mise.lock. This version does not appear to exist in the official golangci/golangci-lint repository, and its download URL will fail. The latest available version at the time of this review is 1.58.1. Please pin to an existing version.
| "github:golangci/golangci-lint" = "latest" | |
| "github:golangci/golangci-lint" = "1.58.1" |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
Test plan
🤖 Generated with Claude Code