Skip to content

fix: resolve go CLI latest release without GitHub API - #20159

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
Yannnnnnny:gocli
Sep 24, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
Yannnnnnny:gocli

Conversation

@Yannnnnnny

Copy link
Copy Markdown
Contributor

Resolve the latest release through GitHub’s releases/latest redirect instead of the rate-limited REST API. Explicitly specified versions continue to work as before.

@coderabbitai

coderabbitai Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 10f796c6-1d58-47b3-9856-7ee77e65f59c

📥 Commits

Reviewing files that changed from the base of the PR and between 628a5cb and 47cb253.

📒 Files selected for processing (1)
  • tools/scripts/install.sh

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The installer now resolves the latest release version from GitHub’s latest-release URL instead of parsing the GitHub API response.

Changes

Latest release version lookup

Layer / File(s) Summary
Resolve the latest release version
tools/scripts/install.sh
The script follows the latest-release URL and extracts the version from the effective URL’s final path component. It strips query strings and trailing slashes, and treats latest as an error.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 47cb2

The latest-release lookup keeps the response body separate from the release URL. No actionable merge-blocking issue was identified.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: resolving the latest Go CLI release without using the GitHub API.
Description check ✅ Passed The description summarizes the purpose of the change and provides relevant context, as required by the Summary template.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the release trail
It follows redirects without fail
The final path reveals the tag
No API JSON in its bag
It nibbles greens and hops away

Comment @coderabbitai help to get the list of available commands.

@JinHai-CN
JinHai-CN merged commit 9e82c9f into infiniflow:main Sep 24, 2026
1 check passed
@Yannnnnnny
Yannnnnnny deleted the gocli branch September 29, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants