ENG-4369: Update golangci-lint to 2.11.3 via mise#95
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 used in the project to 2.11.3. It leverages the 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 introduces mise for managing tool versions, but it has critical issues. The versions for go and golangci-lint specified in mise.toml as latest resolve to non-existent versions (1.26.1 and 2.11.3 respectively) in mise.lock. This will cause the developer setup to fail. I have provided suggestions to pin to valid, existing versions in mise.toml and to regenerate the lock file.
Note: Security Review has been skipped due to the limited scope of the PR.
| @@ -0,0 +1,72 @@ | |||
| # @generated - this file is auto-generated by `mise lock` https://mise.jdx.dev/dev-tools/mise-lock.html | |||
There was a problem hiding this comment.
This auto-generated lock file contains invalid versions for the tools which will cause mise install to fail.
golangci-lintversion2.11.3(line 4) does not exist. The official releases are in the1.x.yrange (e.g.,1.59.1).goversion1.26.1(line 43) does not exist. The latest stable Go version is1.22.x.
The download URLs for these versions are invalid. This file should be regenerated by running mise lock after correcting the tool versions in mise.toml to point to valid, existing releases.
| go = "latest" | ||
| "github:golangci/golangci-lint" = "latest" |
There was a problem hiding this comment.
Using latest for tool versions can lead to non-reproducible environments because the actual version can change over time. It is better to pin specific versions in this file.
Furthermore, latest appears to have resolved to invalid versions for both go (1.26.1) and golangci-lint (2.11.3), as seen in the mise.lock file. These versions do not exist, and their download URLs are invalid, which will cause mise install to fail.
Please pin to valid, existing versions. For go, you should use a version compatible with go 1.24 from your go.mod. For golangci-lint, you should use a valid release version (e.g., the latest is 1.59.1).
| go = "latest" | |
| "github:golangci/golangci-lint" = "latest" | |
| go = "1.24" | |
| "github:golangci/golangci-lint" = "1.59.1" |
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