fix(go): restore git ls-remote for version listing #7324
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
git ls-remote --tagsfor Go version listing instead ofgithub::list_tagsBackground
The recent change in #7305 switched Go from
git ls-remotetogithub::list_tags(). However, this broke Go version listing because:github::list_tags()only fetches the first page by default (whenMISE_LIST_ALL_VERSIONSis not set)The original
git ls-remote --tagsapproach fetches all tags efficiently in a single call, filtered server-side to only "go*" tags.Test plan
mise run lint-fixpassesMISE_USE_VERSIONS_HOST=0 mise ls-remote gonow returns Go versions🤖 Generated with Claude Code
Note
Switches Go version listing fast path to
git ls-remoteto efficiently retrieve allgo*tags and avoid GitHub API pagination issues.src/plugins/core/go.rs):github::list_tagswithgit ls-remote --tags --refs go*executed viaplugins::core::run_fetch_task_with_timeout.VersionInfo(no dates).github::list_tags_with_datesfor detailed info whenMISE_LIST_ALL_VERSIONSis set.Written by Cursor Bugbot for commit b573a79. This will update automatically on new commits. Configure here.