12
0
Fork 0
mirror of https://github.com/astral-sh/setup-uv.git synced 2026-06-29 01:00:44 +00:00

feat: add download-from-astral-mirror input

Add a new boolean input  (default: true)
that controls whether uv is downloaded from the Astral mirror or
directly from GitHub Releases. When set to false, the mirror rewrite
is skipped entirely.
This commit is contained in:
Kevin Stillhammer 2026-05-31 11:40:47 +02:00
parent ddb93f091f
commit 4fa8fca033
No known key found for this signature in database
10 changed files with 66 additions and 4 deletions

View file

@ -861,6 +861,20 @@ jobs:
exit 1
fi
test-download-from-astral-mirror-false:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install with download-from-astral-mirror disabled
id: setup-uv
uses: ./
with:
download-from-astral-mirror: false
- name: Verify uv is installed
run: uv --version
test-absolute-path:
runs-on: ubuntu-latest
steps:
@ -1119,6 +1133,7 @@ jobs:
- test-restore-cache-restore-cache-false
- test-no-python-version
- test-custom-manifest-file
- test-download-from-astral-mirror-false
- test-absolute-path
- test-relative-path
- test-cache-prune-force