Skip to content

installers: Download releases from Astral's mirror first#23617

Merged
zsol merged 1 commit intomainfrom
zsol/jj-vlpokmxyzsqn
Mar 6, 2026
Merged

installers: Download releases from Astral's mirror first#23617
zsol merged 1 commit intomainfrom
zsol/jj-vlpokmxyzsqn

Conversation

@zsol
Copy link
Member

@zsol zsol commented 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.

Test plan

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

Base automatically changed from zsol/jj-kxpmuyxmxonl to main March 2, 2026 09:46
@zsol zsol marked this pull request as ready for review March 2, 2026 09:52
@ntBre
Copy link
Contributor

ntBre commented Mar 4, 2026

Do you want to land this before the release tomorrow?

@ntBre ntBre added the release Related to the release process label Mar 4, 2026
@zsol
Copy link
Member Author

zsol commented Mar 4, 2026 via email

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 zsol force-pushed the zsol/jj-vlpokmxyzsqn branch from bcfb198 to 79006e0 Compare March 6, 2026 11:07
@zsol zsol enabled auto-merge (squash) March 6, 2026 11:10
@zsol zsol merged commit 9b372a5 into main Mar 6, 2026
42 checks passed
@zsol zsol deleted the zsol/jj-vlpokmxyzsqn branch March 6, 2026 11:11
zsol added a commit to astral-sh/ty that referenced this pull request Mar 6, 2026
This is like astral-sh/ruff#23617 but for ty.

## Test plan

```
❯ cargo dist build --tag 0.0.21 -a global
[...]

❯ sh target/distrib/ty-installer.sh -v
downloading ty 0.0.21 aarch64-apple-darwin
  from https://releases.astral.sh/github/ty/releases/download/0.0.21/ty-aarch64-apple-darwin.tar.gz
  to /var/folders/2p/zyzvnr4j5016wx4h0pdgbjb00000gn/T/tmp.94XQUlda6l/input.tar.gz
no checksums to verify
installing to /Users/zsol/.local/bin
  ty
everything's installed!
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Related to the release process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants