mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-12-04 02:16:06 +00:00
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:
1 parent
521745f16c
commit
36300bab3f
19 files changed
+1637
-1647
No files matched your search
@@ -79,7 +79,8 @@ test("enforces intrinsic checksums on downloads and tool-cache hits", async () =
|
||||
await expect(install(version, true, "0".repeat(64))).rejects.toMatchObject({
|
||||
stdout: expect.stringContaining("did not match"),
|
||||
});
|
||||
// The custom manifest also offers these bytes under a known release version.
|
||||
// The custom manifest checksum wins unless intrinsic checksums are required.
|
||||
await install("0.9.26", false);
|
||||
await expect(install("0.9.26", true)).rejects.toMatchObject({
|
||||
stdout: expect.stringContaining("did not match"),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user