Skip to content

Fetch uv from Astral's mirror by default#809

Merged
eifinger merged 1 commit intomainfrom
zsol/jj-msumqzvnsupt
Mar 16, 2026
Merged

Fetch uv from Astral's mirror by default#809
eifinger merged 1 commit intomainfrom
zsol/jj-msumqzvnsupt

Conversation

@zsol
Copy link
Member

@zsol zsol commented Mar 16, 2026

This PR tries fetching the uv artifact from releases.astral.sh by default, only in cases where the artifact would otherwise have come from https://github.com/astral-sh/uv/releases/download/. The checksums are supposed to be the same for the mirror, and can still come from raw.githubusercontent.com/astral-sh/versions. If the download fails, we fall back to the original URL.

This avoids hitting GitHub's Releases API which is prone to rate limiting. As far as I can tell, together with #802 this PR makes a github token entirely unnecessary for this action.

Towards astral-sh/uv#18503.

@zsol zsol marked this pull request as ready for review March 16, 2026 12:18
@zsol zsol requested a review from eifinger as a code owner March 16, 2026 12:18
Copy link
Collaborator

@eifinger eifinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in general. I'm a bit confused by the downloadUrl variable.

@eifinger eifinger added the enhancement New feature or request label Mar 16, 2026
@eifinger eifinger merged commit 37802ad into main Mar 16, 2026
89 checks passed
@eifinger eifinger deleted the zsol/jj-msumqzvnsupt branch March 16, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants