Skip to content

Commit 108a416

Browse files
authored
Download uv from releases.astral.sh instead of GitHub releases (#2050)
Since Astral now mirror uv releases to `releases.astral.sh`, which is backed by Cloudflare R2 / CDN, and so is more reliable than GitHub releases. See: astral-sh/uv#18207 (comment) GUS-W-21561065.
1 parent 75dd5af commit 108a416

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [Unreleased]
44

55
- Updated uv from 0.10.7 to 0.10.9. ([#2049](https://github.com/heroku/heroku-buildpack-python/pull/2049))
6+
- Switched to downloading uv from `releases.astral.sh` instead of GitHub releases. ([#2050](https://github.com/heroku/heroku-buildpack-python/pull/2050))
67

78
## [v338] - 2026-03-03
89

lib/uv.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function uv::install_uv() {
2727
local gnu_arch
2828
# eg: `x86_64` or `aarch64`.
2929
gnu_arch=$(arch)
30-
local uv_url="https://github.com/astral-sh/uv/releases/download/${UV_VERSION}/uv-${gnu_arch}-unknown-linux-gnu.tar.gz"
30+
local uv_url="https://releases.astral.sh/github/uv/releases/download/${UV_VERSION}/uv-${gnu_arch}-unknown-linux-gnu.tar.gz"
3131

3232
local error_log
3333
error_log=$(mktemp)
@@ -64,16 +64,16 @@ function uv::install_uv() {
6464
output::error <<-EOF
6565
Error: Unable to install uv.
6666
67-
Failed to download/install uv from GitHub:
67+
Failed to download/install uv from:
6868
${uv_url}
6969
7070
In some cases, this happens due to a temporary issue with
71-
the network connection or GitHub's API/CDN.
71+
the network connection or Astral's CDN, Cloudflare.
7272
7373
Try building again to see if the error resolves itself.
7474
75-
If that doesn't help, check the status of GitHub here:
76-
https://www.githubstatus.com
75+
If that doesn't help, check the status of Cloudflare here:
76+
https://www.cloudflarestatus.com
7777
EOF
7878
build_data::set_string "failure_reason" "install-package-manager::uv"
7979
# e.g.: 'curl: (56) Recv failure: Connection reset by peer'

0 commit comments

Comments
 (0)