refactor(go): rename go_* settings to go.* namespace#8598
Conversation
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 improves the Go language documentation by adding a crucial detail about configuring the default packages file. It clarifies how users can override the default location for Go packages, enhancing the flexibility and usability of the Highlights
Changelog
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 correctly adds documentation for the MISE_GO_DEFAULT_PACKAGES_FILE setting, which was previously undocumented. The change is a valuable addition. I have a minor suggestion to improve the wording for better clarity and consistency with the rest of the documentation.
docs/lang/go.md
Outdated
| github.com/jesseduffield/lazygit | ||
| ``` | ||
|
|
||
| You can specify a non-default location of this file by setting a `MISE_GO_DEFAULT_PACKAGES_FILE` variable. |
There was a problem hiding this comment.
For improved clarity and consistency, consider rephrasing this sentence to explicitly state that it's an environment variable and that it overrides the default path.
| You can specify a non-default location of this file by setting a `MISE_GO_DEFAULT_PACKAGES_FILE` variable. | |
| You can override the default location of this file by setting the `MISE_GO_DEFAULT_PACKAGES_FILE` environment variable. |
There was a problem hiding this comment.
FYI I kept it in-line with e.g. the Node.js.
Greptile SummaryThis PR refactors Go-specific settings from a flat Key changes:
The implementation is correct and consistent with existing codebase patterns. One minor issue with a misleading deprecation message is noted below. Confidence Score: 5/5Safe to merge — straightforward setting rename with no functional changes and correct backward-compatibility handling. All remaining findings are P2 (a misleading deprecation string that has no runtime effect since deprecated_warn_at/deprecated_remove_at are not set). The refactoring correctly follows existing patterns, backward compatibility is preserved via hidden deprecated aliases, and the migration logic in set_hidden_configs matches the cargo_binstall precedent. settings.toml line 753 has a misleading deprecated message for go.set_gopath, but it is purely cosmetic. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User config: go_download_mirror / go.download_mirror] --> B{set_hidden_configs}
B -->|go_default_packages_file set| C[copy → go.default_packages_file]
B -->|go_download_mirror set| D[copy → go.download_mirror]
B -->|go_repo set| E[copy → go.repo]
B -->|go_set_gobin set| F[copy → go.set_gobin]
B -->|go_set_gopath set| G[copy → go.set_gopath]
B -->|go_set_goroot set| H[copy → go.set_goroot]
B -->|go_skip_checksum set| I[copy → go.skip_checksum]
C & D & E & F & G & H & I --> J[GoPlugin reads settings.go.*]
J --> K[install / exec_env / get_tarball_url / etc.]
Reviews (2): Last reviewed commit: "docs(go): remove manual env var note" | Re-trigger Greptile |
|
the better fix would be to rename the setting |
I've tried to rename but ran into the following error, after changing the name in |
Move all Go-related settings from flat `go_*` format to nested `go.*` namespace for consistency with other language settings (node.*, python.*, ruby.*). Old setting names are preserved as deprecated aliases for backward compatibility. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3a1d12d to
90778f3
Compare
The `<Settings child="go" />` component now auto-renders all go.* settings including default_packages_file, making the manual note redundant. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
### 🚀 Features - **(ci)** auto-convert external PRs to draft mode by @jdx in [#8896](#8896) - **(deps)** add `depends` field for user-specified tool dependencies by @cprecioso in [#8776](#8776) - **(dotnet)** support runtime-only installs by @fragon10 in [#8524](#8524) - **(npm)** apply install_before to transitive dependencies by @risu729 in [#8851](#8851) - **(task)** allow passing arguments to task dependencies via {{usage.*}} templates by @jdx in [#8893](#8893) - add options field to BackendListVersionsCtx by @esteve in [#8875](#8875) ### 🐛 Bug Fixes - **(backend)** filter PEP 440 .dev versions in fuzzy version matching by @richardthe3rd in [#8849](#8849) - **(ci)** update COPR BuildRequires rust version to match MSRV 1.88 by @jdx in [#8911](#8911) - **(ci)** add Ruby build dependencies to e2e Docker image by @jdx in [#8910](#8910) - **(ci)** add missing build dependencies to e2e Docker image by @jdx in [#8912](#8912) - **(ci)** add missing build dependencies to e2e Docker image by @jdx in [#8914](#8914) - **(ci)** use Node 24 LTS for corepack e2e test by @jdx in [#8915](#8915) - **(ci)** add libxml2 and pkg-config to e2e Docker image by @jdx in [#8917](#8917) - **(ci)** add libxml2-dev to e2e image and disable Swift SPM tests by @jdx in [#8918](#8918) - **(docs)** use sans-serif font for badges by @jdx in [#8887](#8887) - **(env)** parse --env=VALUE and -E=VALUE flag forms correctly by @jdx in [#8889](#8889) - **(exec)** use i64::from() for seccomp syscall numbers to survive autofix by @jdx in [#8882](#8882) - **(github)** preserve tool options like filter_bins when version specified via CLI by @jdx in [#8888](#8888) - **(github)** use alias-specific options when tool_alias has its own config by @jdx in [#8892](#8892) - **(install)** add locked_verify_provenance setting and detect github attestations at lock time by @jdx in [#8901](#8901) - **(lock)** prune stale version entries during filtered `mise lock <tool>` runs by @altendky in [#8599](#8599) - **(python)** use lockfile URL for precompiled installs by @hehaoqian in [#8750](#8750) - **(release)** verify all build targets succeed before releasing by @jdx in [#8886](#8886) - **(ruby)** support build revisions for precompiled binaries in mise.lock by @jdx in [#8900](#8900) - **(swift)** fall back to Ubuntu 24.04 for unsupported Ubuntu versions by @jdx in [#8916](#8916) - **(zsh)** avoid duplicate trust warning after cd by @timothysparg in [#8898](#8898) - update flake.lock and add fix for rust-bindgen to default.nix by @esteve in [#8874](#8874) - when direnv diff is empty, do not try to parse it by @yaleman in [#8857](#8857) - skip trust check for plain .tool-versions in task list by @dportalesr in [#8876](#8876) ### 🚜 Refactor - **(go)** rename go_* settings to go.* namespace by @jdbruijn in [#8598](#8598) ### 📚 Documentation - **(tasks)** clarify task_config.includes behavior by @risu729 in [#8905](#8905) ### 🧪 Testing - **(ci)** run e2e tests inside Docker containers by @jdx in [#8899](#8899) ### 📦️ Dependency Updates - bump ubi from 0.8 to 0.9 by @jdx in [#8906](#8906) - bump zip from 3 to 8 by @jdx in [#8908](#8908) - update lockfile deps (hold back rattler) by @jdx in [#8909](#8909) - update bun.lock by @jdx in [#8913](#8913) ### 📦 Registry - add turso ([github:tursodatabase/turso-cli](https://github.com/tursodatabase/turso-cli)) by @kenn in [#8884](#8884) - remove carp test by @jdx in [#8894](#8894) ### Chore - **(ci)** add workflow to warn PRs modifying vendored aqua-registry by @jdx in [#8897](#8897) - **(ci)** use github.token for draft conversion in auto-draft workflow by @jdx in [#8903](#8903) - remove deprecated settings older than 12 months by @jdx in [#8904](#8904) ### New Contributors - @dportalesr made their first contribution in [#8876](#8876) - @timothysparg made their first contribution in [#8898](#8898) - @hehaoqian made their first contribution in [#8750](#8750) - @jdbruijn made their first contribution in [#8598](#8598) - @cprecioso made their first contribution in [#8776](#8776) - @yaleman made their first contribution in [#8857](#8857) - @kenn made their first contribution in [#8884](#8884) - @fragon10 made their first contribution in [#8524](#8524) ## 📦 Aqua Registry Updates #### New Packages (6) - [`ahkohd/oyo`](https://github.com/ahkohd/oyo) - [`bellicose100xp/jiq`](https://github.com/bellicose100xp/jiq) - [`kurama/dealve-tui`](https://github.com/kurama/dealve-tui) - [`micahkepe/jsongrep`](https://github.com/micahkepe/jsongrep) - [`textfuel/lazyjira`](https://github.com/textfuel/lazyjira) - [`ubugeeei/vize`](https://github.com/ubugeeei/vize) #### Updated Packages (1) - [`sigstore/cosign`](https://github.com/sigstore/cosign)
Rename all Go settings from flat
go_*format to nestedgo.*namespace for consistency with other language settings (node.*,python.*,ruby.*).Old setting names are preserved as deprecated aliases for backward compatibility.
Changes
go_default_packages_file→go.default_packages_filego_download_mirror→go.download_mirrorgo_repo→go.repogo_set_gobin→go.set_gobingo_set_gopath→go.set_gopathgo_set_goroot→go.set_gorootgo_skip_checksum→go.skip_checksumAlso adds documentation note about
MISE_GO_DEFAULT_PACKAGES_FILEenv var (original PR intent).