Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [Unreleased]

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

## [v338] - 2026-03-03

Expand Down
10 changes: 5 additions & 5 deletions lib/uv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function uv::install_uv() {
local gnu_arch
# eg: `x86_64` or `aarch64`.
gnu_arch=$(arch)
local uv_url="https://github.com/astral-sh/uv/releases/download/${UV_VERSION}/uv-${gnu_arch}-unknown-linux-gnu.tar.gz"
local uv_url="https://releases.astral.sh/github/uv/releases/download/${UV_VERSION}/uv-${gnu_arch}-unknown-linux-gnu.tar.gz"

local error_log
error_log=$(mktemp)
Expand Down Expand Up @@ -64,16 +64,16 @@ function uv::install_uv() {
output::error <<-EOF
Error: Unable to install uv.

Failed to download/install uv from GitHub:
Failed to download/install uv from:
${uv_url}

In some cases, this happens due to a temporary issue with
the network connection or GitHub's API/CDN.
the network connection or Astral's CDN, Cloudflare.

Try building again to see if the error resolves itself.

If that doesn't help, check the status of GitHub here:
https://www.githubstatus.com
If that doesn't help, check the status of Cloudflare here:
https://www.cloudflarestatus.com
EOF
build_data::set_string "failure_reason" "install-package-manager::uv"
# e.g.: 'curl: (56) Recv failure: Connection reset by peer'
Expand Down