fix(github): skip versions host for slash tags#10306
Conversation
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR introduces a new helper function ChangesVersions-host release metadata lookup gating
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
Greptile SummaryThis PR adds a guard that skips the
Confidence Score: 5/5Safe to merge — the change is narrow, the fallback path already existed, and no behavior changes for normal (non-slash) tags. The fix extracts an existing condition into a well-named helper and adds one extra predicate ( No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "fix(github): skip versions host for slas..." | Re-trigger Greptile |
|
This is not the right fix, we still need to use the version host for these |
Summary
Skip
mise-versionsGitHub release metadata lookups when the release tag contains/.Why
mise locknow consultsmise-versions.jdx.devfor public GitHub release metadata beforefalling back to the GitHub API. That works for normal tags, but tags that contain
/currentlyfail at the versions-host boundary.
A concrete example is Biome's
@biomejs/biome@2.4.16tag, which returns:400 Invalid GitHub release pathfrommise-versionsThat makes
mise lockemit noisy warnings even though the fallback path is correct.What changed
/Impact
This avoids spurious
mise-versions400s for tools whose release tags include path separators,including registry-backed GitHub release integrations such as Biome.
Validation
cargo test test_can_use_versions_host_for_release_metadatacargo test test_empty_release_assets_are_not_cachedcargo fmt --checkSummary by CodeRabbit
Bug Fixes
Tests