From d9d86450fff31b2f3b966f75af97e78851687d60 Mon Sep 17 00:00:00 2001 From: Zsolt Dollenstein Date: Fri, 6 Mar 2026 11:12:32 +0000 Subject: [PATCH] installers: Download releases from Astral's mirror first MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is like https://github.com/astral-sh/ruff/pull/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! ``` --- dist-workspace.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dist-workspace.toml b/dist-workspace.toml index e69ce9f2c..3e8e0d6ae 100644 --- a/dist-workspace.toml +++ b/dist-workspace.toml @@ -65,6 +65,9 @@ install-updater = false install-path = ["$XDG_BIN_HOME/", "$XDG_DATA_HOME/../bin", "~/.local/bin"] # Whether source tarballs should include submodules recursive-tarball = true +# Prefer simple hosting for downloads, falling back to GitHub releases +hosting = ["simple", "github"] +simple-download-url = "https://releases.astral.sh/github/ty/releases/download/{tag}" [dist.github-custom-runners] global = "depot-ubuntu-latest-4"