Skip to content

chore: install.sh HTML redirect + clippy fix#139

Merged
firstintent merged 1 commit into
mainfrom
chore/install-sh-redirect
May 24, 2026
Merged

chore: install.sh HTML redirect + clippy fix#139
firstintent merged 1 commit into
mainfrom
chore/install-sh-redirect

Conversation

@firstintent
Copy link
Copy Markdown
Owner

install.sh

  • Resolve latest tag via HTML redirect (no GitHub API rate limit). Pattern borrowed from rtk-ai/rtk install.sh.
  • API fallback kept for resilience.
  • Drop hardcoded v0.6.6 from usage messages → <tag> placeholder.

clippy

project_probe.rs:595 unnecessary_sort_bysort_by_key(|b| std::cmp::Reverse(b.1)) per clippy suggestion. Unblocks check.yml CI gate (introduced post-V0.6.6 in chore PR #136).

Scope

  • 2 files
  • No version bump
  • No baseline impact (clippy fix is no-op semantically)

…cessary_sort_by fix

install.sh changes:
- Resolve latest tag via HTML redirect (curl -sI parse Location header),
  borrowed from rtk-ai/rtk pattern. Bypasses GitHub API ~60 req/hr rate
  limit that triggered 403 errors on multiple user machines.
- Keep GitHub API as fallback if redirect parse fails.
- Drop hardcoded v0.6.6 from usage messages (use <tag> placeholder).

project_probe.rs:595 — apply clippy unnecessary_sort_by suggestion
(ranked.sort_by(|a, b| b.1.cmp(&a.1)) → sort_by_key(|b| Reverse(b.1))).
Unblocks check.yml CI gate.

No version bump, no baseline impact.
@firstintent firstintent merged commit d7b4201 into main May 24, 2026
1 of 2 checks passed
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.

1 participant