Respect the mirror setting when selecting the version manifest (#1164)

Select the manifest source from the action inputs and keep version
resolution separate from archive downloads. Fetch the built-in manifest
directly from GitHub when the Astral mirror is disabled.

Fixes: #1140

Based on the work of @Rudra-G-23 in
https://github.com/astral-sh/setup-uv/pull/1152

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Kevin StillhammerandAmp authored and GitHub committed 2026-12-02 11:40:15 +01:00
1 parent 521745f16c
commit 36300bab3f
19 files changed
+1637 -1647

No files matched your search

+5
View File
@@ -20,6 +20,11 @@ export function createSetupInputs(
githubToken: "",
ignoreEmptyWorkdir: false,
ignoreNothingToCache: false,
manifestSource: {
custom: false,
newestFirst: true,
url: "https://example.com/uv.ndjson",
},
noProject: false,
pruneCache: false,
pythonArch: "",