mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-12-19 11:04:08 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4cda7d7332 | ||
|
|
8114e5e81b | ||
|
|
7ee921e18a | ||
|
|
8c3a35e468 |
26
dist/setup/index.js
generated
vendored
26
dist/setup/index.js
generated
vendored
@@ -87930,7 +87930,7 @@ const core = __importStar(__nccwpck_require__(2186));
|
|||||||
const known_checksums_1 = __nccwpck_require__(4379);
|
const known_checksums_1 = __nccwpck_require__(4379);
|
||||||
function validateChecksum(checkSum, downloadPath, arch, platform, version) {
|
function validateChecksum(checkSum, downloadPath, arch, platform, version) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
let isValid = true;
|
let isValid = undefined;
|
||||||
if (checkSum !== undefined && checkSum !== "") {
|
if (checkSum !== undefined && checkSum !== "") {
|
||||||
isValid = yield validateFileCheckSum(downloadPath, checkSum);
|
isValid = yield validateFileCheckSum(downloadPath, checkSum);
|
||||||
}
|
}
|
||||||
@@ -87946,10 +87946,12 @@ function validateChecksum(checkSum, downloadPath, arch, platform, version) {
|
|||||||
core.debug(`No known checksum found for ${key}.`);
|
core.debug(`No known checksum found for ${key}.`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!isValid) {
|
if (isValid === false) {
|
||||||
throw new Error(`Checksum for ${downloadPath} did not match ${checkSum}.`);
|
throw new Error(`Checksum for ${downloadPath} did not match ${checkSum}.`);
|
||||||
}
|
}
|
||||||
core.debug(`Checksum for ${downloadPath} is valid.`);
|
if (isValid === true) {
|
||||||
|
core.debug(`Checksum for ${downloadPath} is valid.`);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function validateFileCheckSum(filePath, expected) {
|
function validateFileCheckSum(filePath, expected) {
|
||||||
@@ -87983,6 +87985,24 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
exports.KNOWN_CHECKSUMS = void 0;
|
exports.KNOWN_CHECKSUMS = void 0;
|
||||||
// AUTOGENERATED_DO_NOT_EDIT
|
// AUTOGENERATED_DO_NOT_EDIT
|
||||||
exports.KNOWN_CHECKSUMS = {
|
exports.KNOWN_CHECKSUMS = {
|
||||||
|
"undefined-0.4.16": "942296098d4738db464ea170c654d61281f35cd98fc1ecc6c6df784ba9373bb3",
|
||||||
|
"aarch64-apple-darwin-0.4.16": "cbfb46932ced7319e0b90cff87bfff759bc319e719cca369ace476906b178f25",
|
||||||
|
"aarch64-unknown-linux-gnu-0.4.16": "c5f4f0a7acdbcb6273d117ac9a72767406e2a8da3cc2c72b5818ca08165e90c9",
|
||||||
|
"aarch64-unknown-linux-musl-0.4.16": "7f093031e442181b7504fd55e9d0211358646b4fead1317d45aba44efcab719e",
|
||||||
|
"arm-unknown-linux-musleabihf-0.4.16": "ec9ca782be4eabb583423539fd335cc1ff9edcbcca8f73cd4cc4a6cdc433023a",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.4.16": "ee55becb4a3e861fdc25eb42fb9fd224625bc6cb06391894aa2b064aa00682d0",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.4.16": "5c8dc9de0130004b63ac0b104b460f93bbccc47bc2274294c27ad922142f8d8a",
|
||||||
|
"i686-pc-windows-msvc-0.4.16": "44e1d1cb1bb87b18ef6a106585e6860cbe4cda7cd9475cd20eb68b741d4d9293",
|
||||||
|
"i686-unknown-linux-gnu-0.4.16": "72799882d18ea4b8ad7cf8b12768c35311d25f6c4eb241a12d44d52b2b02efc3",
|
||||||
|
"i686-unknown-linux-musl-0.4.16": "0bb65ab130e6cad00c4d28c8c4f359157bf752ec92145ca44769e66a1143804b",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.4.16": "5699b114794b83b42753f4ddeefd00c902e10564733879efeb45b60dd25b04f5",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.4.16": "65f61fc69579d7f6a7238bd180588481ea4b20ff5d45ee62ce590229d53dbb3d",
|
||||||
|
"powerpc64le-unknown-linux-musl-0.4.16": "48c83cf9ce5b3e4ecce2fe305aa3f4f8fc0a633f8a0398c7f59f501e8db61fb6",
|
||||||
|
"s390x-unknown-linux-gnu-0.4.16": "112e6dea4ddbc6c0dbf416bc7d5dff79fcacd3e0f7fa52772f7647b8cd26ca25",
|
||||||
|
"x86_64-apple-darwin-0.4.16": "ecf035262115b216f6cc709917418df9dbafe47d49b8048c465faa406face032",
|
||||||
|
"x86_64-pc-windows-msvc-0.4.16": "93a6df8f8225fb73dda275d06455fe5026f00c42e8dccc787812841c0c104291",
|
||||||
|
"x86_64-unknown-linux-gnu-0.4.16": "f4f4de434206fb610ecb2dbc3fc44c62adb6b61e8d1237d858a10b407a2737c4",
|
||||||
|
"x86_64-unknown-linux-musl-0.4.16": "aab3a3ef8e4ffa641210b1ed374eebd08b5e612b1a928c291a543d3b624d46d1",
|
||||||
"undefined-0.4.15": "22b605c86cfcb8db9922387151fd8e79d3d2a1caf6f2a03a238ca7ebe058853f",
|
"undefined-0.4.15": "22b605c86cfcb8db9922387151fd8e79d3d2a1caf6f2a03a238ca7ebe058853f",
|
||||||
"aarch64-apple-darwin-0.4.15": "32f6ad64b9dcf164fa75efef73e0e9a9b769073e6bfe844560329a3176b39b9b",
|
"aarch64-apple-darwin-0.4.15": "32f6ad64b9dcf164fa75efef73e0e9a9b769073e6bfe844560329a3176b39b9b",
|
||||||
"aarch64-unknown-linux-gnu-0.4.15": "cf3f9f98642bd2a7e9d6fa27d880bdbdccc16b6a525b240013789d3048c02348",
|
"aarch64-unknown-linux-gnu-0.4.15": "cf3f9f98642bd2a7e9d6fa27d880bdbdccc16b6a525b240013789d3048c02348",
|
||||||
|
|||||||
14
package-lock.json
generated
14
package-lock.json
generated
@@ -19,7 +19,7 @@
|
|||||||
"@octokit/rest": "^21.0.2"
|
"@octokit/rest": "^21.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^22.5.5",
|
"@types/node": "^22.7.0",
|
||||||
"@types/semver": "^7.5.8",
|
"@types/semver": "^7.5.8",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
||||||
"@typescript-eslint/parser": "^7.18.0",
|
"@typescript-eslint/parser": "^7.18.0",
|
||||||
@@ -2101,9 +2101,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "22.5.5",
|
"version": "22.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.0.tgz",
|
||||||
"integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==",
|
"integrity": "sha512-MOdOibwBs6KW1vfqz2uKMlxq5xAfAZ98SZjO8e3XnAbFnTJtAspqhWk7hrdSAs9/Y14ZWMiy7/MxMUzAOadYEw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~6.19.2"
|
"undici-types": "~6.19.2"
|
||||||
}
|
}
|
||||||
@@ -9787,9 +9787,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "22.5.5",
|
"version": "22.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.5.5.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.0.tgz",
|
||||||
"integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==",
|
"integrity": "sha512-MOdOibwBs6KW1vfqz2uKMlxq5xAfAZ98SZjO8e3XnAbFnTJtAspqhWk7hrdSAs9/Y14ZWMiy7/MxMUzAOadYEw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"undici-types": "~6.19.2"
|
"undici-types": "~6.19.2"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
"@octokit/rest": "^21.0.2"
|
"@octokit/rest": "^21.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^22.5.5",
|
"@types/node": "^22.7.0",
|
||||||
"@types/semver": "^7.5.8",
|
"@types/semver": "^7.5.8",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
||||||
"@typescript-eslint/parser": "^7.18.0",
|
"@typescript-eslint/parser": "^7.18.0",
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export async function validateChecksum(
|
|||||||
platform: Platform,
|
platform: Platform,
|
||||||
version: string,
|
version: string,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
let isValid = true;
|
let isValid: boolean | undefined = undefined;
|
||||||
if (checkSum !== undefined && checkSum !== "") {
|
if (checkSum !== undefined && checkSum !== "") {
|
||||||
isValid = await validateFileCheckSum(downloadPath, checkSum);
|
isValid = await validateFileCheckSum(downloadPath, checkSum);
|
||||||
} else {
|
} else {
|
||||||
@@ -27,10 +27,12 @@ export async function validateChecksum(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isValid) {
|
if (isValid === false) {
|
||||||
throw new Error(`Checksum for ${downloadPath} did not match ${checkSum}.`);
|
throw new Error(`Checksum for ${downloadPath} did not match ${checkSum}.`);
|
||||||
}
|
}
|
||||||
core.debug(`Checksum for ${downloadPath} is valid.`);
|
if (isValid === true) {
|
||||||
|
core.debug(`Checksum for ${downloadPath} is valid.`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function validateFileCheckSum(
|
async function validateFileCheckSum(
|
||||||
|
|||||||
@@ -1,5 +1,41 @@
|
|||||||
// AUTOGENERATED_DO_NOT_EDIT
|
// AUTOGENERATED_DO_NOT_EDIT
|
||||||
export const KNOWN_CHECKSUMS: { [key: string]: string } = {
|
export const KNOWN_CHECKSUMS: { [key: string]: string } = {
|
||||||
|
"undefined-0.4.16":
|
||||||
|
"942296098d4738db464ea170c654d61281f35cd98fc1ecc6c6df784ba9373bb3",
|
||||||
|
"aarch64-apple-darwin-0.4.16":
|
||||||
|
"cbfb46932ced7319e0b90cff87bfff759bc319e719cca369ace476906b178f25",
|
||||||
|
"aarch64-unknown-linux-gnu-0.4.16":
|
||||||
|
"c5f4f0a7acdbcb6273d117ac9a72767406e2a8da3cc2c72b5818ca08165e90c9",
|
||||||
|
"aarch64-unknown-linux-musl-0.4.16":
|
||||||
|
"7f093031e442181b7504fd55e9d0211358646b4fead1317d45aba44efcab719e",
|
||||||
|
"arm-unknown-linux-musleabihf-0.4.16":
|
||||||
|
"ec9ca782be4eabb583423539fd335cc1ff9edcbcca8f73cd4cc4a6cdc433023a",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.4.16":
|
||||||
|
"ee55becb4a3e861fdc25eb42fb9fd224625bc6cb06391894aa2b064aa00682d0",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.4.16":
|
||||||
|
"5c8dc9de0130004b63ac0b104b460f93bbccc47bc2274294c27ad922142f8d8a",
|
||||||
|
"i686-pc-windows-msvc-0.4.16":
|
||||||
|
"44e1d1cb1bb87b18ef6a106585e6860cbe4cda7cd9475cd20eb68b741d4d9293",
|
||||||
|
"i686-unknown-linux-gnu-0.4.16":
|
||||||
|
"72799882d18ea4b8ad7cf8b12768c35311d25f6c4eb241a12d44d52b2b02efc3",
|
||||||
|
"i686-unknown-linux-musl-0.4.16":
|
||||||
|
"0bb65ab130e6cad00c4d28c8c4f359157bf752ec92145ca44769e66a1143804b",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.4.16":
|
||||||
|
"5699b114794b83b42753f4ddeefd00c902e10564733879efeb45b60dd25b04f5",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.4.16":
|
||||||
|
"65f61fc69579d7f6a7238bd180588481ea4b20ff5d45ee62ce590229d53dbb3d",
|
||||||
|
"powerpc64le-unknown-linux-musl-0.4.16":
|
||||||
|
"48c83cf9ce5b3e4ecce2fe305aa3f4f8fc0a633f8a0398c7f59f501e8db61fb6",
|
||||||
|
"s390x-unknown-linux-gnu-0.4.16":
|
||||||
|
"112e6dea4ddbc6c0dbf416bc7d5dff79fcacd3e0f7fa52772f7647b8cd26ca25",
|
||||||
|
"x86_64-apple-darwin-0.4.16":
|
||||||
|
"ecf035262115b216f6cc709917418df9dbafe47d49b8048c465faa406face032",
|
||||||
|
"x86_64-pc-windows-msvc-0.4.16":
|
||||||
|
"93a6df8f8225fb73dda275d06455fe5026f00c42e8dccc787812841c0c104291",
|
||||||
|
"x86_64-unknown-linux-gnu-0.4.16":
|
||||||
|
"f4f4de434206fb610ecb2dbc3fc44c62adb6b61e8d1237d858a10b407a2737c4",
|
||||||
|
"x86_64-unknown-linux-musl-0.4.16":
|
||||||
|
"aab3a3ef8e4ffa641210b1ed374eebd08b5e612b1a928c291a543d3b624d46d1",
|
||||||
"undefined-0.4.15":
|
"undefined-0.4.15":
|
||||||
"22b605c86cfcb8db9922387151fd8e79d3d2a1caf6f2a03a238ca7ebe058853f",
|
"22b605c86cfcb8db9922387151fd8e79d3d2a1caf6f2a03a238ca7ebe058853f",
|
||||||
"aarch64-apple-darwin-0.4.15":
|
"aarch64-apple-darwin-0.4.15":
|
||||||
|
|||||||
Reference in New Issue
Block a user