-
Notifications
You must be signed in to change notification settings - Fork 74
Improve linting/tidying config #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
oschwald
commented
Jan 26, 2026
- Add mise configuration for tooling
- Migrate precious workflow to use mise
- Add golangci-lint to precious config
This adds mise as our tool version manager, configuring: - go: for building and testing - node: runtime for npm-based tools - golangci-lint: Go linting - precious: multi-language linter runner - prettier: code formatting Co-Authored-By: Claude Opus 4.5 <[email protected]>
This fixes the flaky CI issue (ENG-3952) where `npx -y -- prettier` would intermittently fail due to npm package corruption during download. Changes: - Use jdx/mise-action to install precious and prettier via mise - Remove manual curl download of precious binary - Change precious.toml to call prettier directly (mise adds it to PATH) - Add explicit empty permissions block for security best practice Co-Authored-By: Claude Opus 4.5 <[email protected]>
Move golangci-lint from a separate workflow into precious, adding both format and lint commands. This consolidates Go linting with other code quality checks. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Summary of ChangesHello @oschwald, 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 refines the project's development environment by enhancing its linting and tidying configurations. It introduces 'mise' for streamlined tool management, ensuring that essential development tools are consistently provisioned. Furthermore, it integrates 'golangci-lint' into the 'precious' workflow, providing automated formatting and linting capabilities for Go source code. Highlights
Ignored Files
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request improves the project's linting and tidying setup by introducing mise for tool version management and adding golangci-lint to the precious configuration. The changes are a good step towards standardizing the development environment.
My review focuses on the new mise.toml file. I've recommended pinning tool versions instead of using latest to ensure reproducible builds. This is a high-priority suggestion to prevent unexpected breakages in the future. The rest of the changes look good.
| go = "latest" | ||
| node = "latest" | ||
| golangci-lint = "latest" | ||
| "github:houseabsolute/precious" = "latest" | ||
| "npm:prettier" = "latest" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using latest for tool versions can lead to non-reproducible builds. If a new version of a tool is released with breaking changes, it could break the development environment or CI/CD pipeline unexpectedly. It's a best practice to pin tools to specific versions to ensure everyone is using the same toolchain and that builds are deterministic.
You should replace latest with specific versions. For example:
go = "1.22.0"
node = "20.11.0"
golangci-lint = "1.56.2"
"github:houseabsolute/precious" = "0.4.0"
"npm:prettier" = "3.2.5"Please choose the versions that are appropriate for your project.
| go = "latest" | |
| node = "latest" | |
| golangci-lint = "latest" | |
| "github:houseabsolute/precious" = "latest" | |
| "npm:prettier" = "latest" | |
| go = "1.22.0" | |
| node = "20.11.0" | |
| golangci-lint = "1.56.2" | |
| "github:houseabsolute/precious" = "0.4.0" | |
| "npm:prettier" = "3.2.5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with this, but we previously used the latest versions and we would need to come up with a plan to keep them up to date.