Skip to content

Use astral-sh/versions as primary version provider#802

Merged
eifinger merged 1 commit intomainfrom
astral-sh-versions
Mar 12, 2026
Merged

Use astral-sh/versions as primary version provider#802
eifinger merged 1 commit intomainfrom
astral-sh-versions

Conversation

@eifinger
Copy link
Collaborator

@eifinger eifinger commented Mar 12, 2026

Closes: #777
Closes: #325

@eifinger eifinger force-pushed the astral-sh-versions branch 4 times, most recently from 4098723 to cc3002e Compare March 12, 2026 15:46
@eifinger eifinger force-pushed the astral-sh-versions branch from cc3002e to 9e0614a Compare March 12, 2026 20:53
@eifinger eifinger marked this pull request as ready for review March 12, 2026 21:00
@eifinger eifinger added the enhancement New feature or request label Mar 12, 2026
@eifinger eifinger merged commit e06108d into main Mar 12, 2026
89 checks passed
@eifinger eifinger deleted the astral-sh-versions branch March 12, 2026 21:03
eifinger pushed a commit that referenced this pull request 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.
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.

Add retry with backoff for GitHub API calls and binary downloads Error: API rate limit exceeded

1 participant