Skip to content

installers: Download uv releases from a mirror#18191

Merged
zsol merged 3 commits intomainfrom
zsol/jj-xowswqwturvy
Feb 27, 2026
Merged

installers: Download uv releases from a mirror#18191
zsol merged 3 commits intomainfrom
zsol/jj-xowswqwturvy

Conversation

@zsol
Copy link
Member

@zsol zsol commented Feb 25, 2026

Summary

Prioritize downloading uv releases from releases.astral.sh over GitHub. We still fall back to the latter in case of problems with the former.

We should consider landing and releasing #18159 before we merge this to minimize the chance of a botched mirror publish causing unnecessary churn for installs.

Test Plan

❯ cargo dist build --tag 0.10.6 -a global
...
❯ sh ./target/distrib/uv-installer.sh -v
downloading uv 0.10.6 aarch64-apple-darwin
  from https://releases.astral.sh/github/uv/releases/download/0.10.6/uv-aarch64-apple-darwin.tar.gz
  to /var/folders/2p/zyzvnr4j5016wx4h0pdgbjb00000gn/T/tmp.BVotOxCJJ6/input.tar.gz
no checksums to verify
installing to /Users/zsol/.local/bin
  uv
  uvx
everything's installed!

@zsol zsol force-pushed the zsol/jj-uklklnstukrw branch from 4e5b6f8 to 5010369 Compare February 25, 2026 16:49
@zsol zsol force-pushed the zsol/jj-xowswqwturvy branch from ee53349 to ab9333c Compare February 25, 2026 16:50
@zsol zsol force-pushed the zsol/jj-uklklnstukrw branch 3 times, most recently from 883cc6a to 2f0f765 Compare February 25, 2026 22:32
@zsol zsol force-pushed the zsol/jj-xowswqwturvy branch from ab9333c to 1ccb090 Compare February 25, 2026 22:39
@zsol zsol force-pushed the zsol/jj-uklklnstukrw branch from db6739d to 0ae2f3a Compare February 26, 2026 17:04
@zsol zsol force-pushed the zsol/jj-xowswqwturvy branch from 1ccb090 to d900c79 Compare February 26, 2026 17:05
@zsol zsol requested a review from Gankra February 26, 2026 17:37
@zsol zsol marked this pull request as ready for review February 26, 2026 17:37
Base automatically changed from zsol/jj-uklklnstukrw to main February 27, 2026 09:56
@konstin konstin added the enhancement New feature or improvement to existing functionality label Feb 27, 2026
@zsol zsol force-pushed the zsol/jj-xowswqwturvy branch from d900c79 to dee6ed3 Compare February 27, 2026 16:49
@zsol zsol changed the title Download uv releases from a mirror installers: Download uv releases from a mirror Feb 27, 2026
@zsol zsol merged commit f84b02b into main Feb 27, 2026
50 checks passed
@zsol zsol deleted the zsol/jj-xowswqwturvy branch February 27, 2026 16:58
zsol added a commit to astral-sh/ruff that referenced this pull request Feb 27, 2026
This is like astral-sh/uv#18191 but for Ruff.

> [!NOTE]
> We should only merge this once #23616 is merged and released.

This makes the installer shell scripts download releases from Astral's mirror first, falling back to GitHub releases if the mirror is not available.
zsol added a commit to astral-sh/ruff that referenced this pull request Feb 27, 2026
This is like astral-sh/uv#18191 but for Ruff.

> [!NOTE]
> We should only merge this once #23616 is merged and released.

This makes the installer shell scripts download releases from Astral's mirror first, falling back to GitHub releases if the mirror is not available.
zsol added a commit to astral-sh/ruff that referenced this pull request Mar 6, 2026
This is like astral-sh/uv#18191 but for Ruff.

> [!NOTE]
> We should only merge this once #23616 is merged and released.

This makes the installer shell scripts download releases from Astral's mirror first, falling back to GitHub releases if the mirror is not available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants