feat(providers): use vx-org/mirrors as stable download source for all providers#858
Open
loonghao wants to merge 5 commits into
Open
feat(providers): use vx-org/mirrors as stable download source for all providers#858loonghao wants to merge 5 commits into
loonghao wants to merge 5 commits into
Conversation
All providers now fetch version lists from vx-org/mirrors GitHub Releases instead of upstream sources directly. Download URLs for providers with custom download_url are also updated to use vx-org/mirrors assets. Affected: 64 providers across all ecosystems Static check: 137/137 pass
make_fetch_versions() now accepts an optional tag_prefix parameter that
is passed through to the Rust runtime's version resolver.
This allows providers to fetch versions from mirror repos where tags
follow the pattern '{tool}-{version}' instead of 'v{version}'.
Example:
fetch_versions = make_fetch_versions("vx-org", "mirrors", tag_prefix = "ripgrep-")
# tag 'ripgrep-15.1.0' → version '15.1.0'
The Rust runtime (versions.rs) already supports tag_prefix in the
github_versions descriptor - this change exposes it at the Starlark level.
… on mirrors mirrors sync is still in progress - switching fetch_versions to mirrors caused 'No versions found' errors for all providers not yet synced. Strategy change: - fetch_versions: restored to original upstream sources (immediate fix) - download_url: still points to vx-org/mirrors (stability benefit) Once mirrors sync is complete, fetch_versions can be switched to mirrors in a follow-up PR.
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (54.23%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #858 +/- ##
==========================================
- Coverage 54.26% 54.23% -0.03%
==========================================
Files 377 382 +5
Lines 66876 67670 +794
==========================================
+ Hits 36289 36703 +414
- Misses 30587 30967 +380
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Mirror vx-org/mirrors is not fully synced yet. Revert all provider.star to use original GitHub URLs to fix CI 404 errors. Keep github.star tag_prefix support for future use.
Zig download URL format changed at version 0.14.1:
- 0.14.0 and earlier: zig-{os}-{arch}-{version}.{ext}
- 0.14.1 and later: zig-{arch}-{os}-{version}.{ext}
Added _zig_use_new_url_format() to detect format based on version
and use the correct URL format in download_url().
Fixes 'error decoding response body' CI failure (404 on old URL format).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Switch all vx providers to use vx-org/mirrors as the primary version list and download source.
Why
Some upstream sources are unreliable or ephemeral:
What Changed
vx-org/mirrors (new repo)
Provider changes (64 files)
All
fetch_versionsnow point tovx-org/mirrorstags instead of upstream:Custom
download_urlfunctions updated to download from mirrors releases.Verification
New tools
witr: process introspection tool (already in PR feat: add witr provider (137 providers total) #856, included here for completeness)rtk: AI workflow CLI (rtk-ai/rtk, all platforms)