mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-12-17 11:05:59 +00:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f731690a1d | ||
|
|
77c28f02b3 | ||
|
|
00c695b84c | ||
|
|
2422c84f47 | ||
|
|
680950fd0f | ||
|
|
c9aa747934 | ||
|
|
97dc6041e9 | ||
|
|
c11f8674f8 | ||
|
|
023eb7875f | ||
|
|
315da29189 |
@@ -1,4 +0,0 @@
|
|||||||
dist/
|
|
||||||
lib/
|
|
||||||
node_modules/
|
|
||||||
jest.config.js
|
|
||||||
@@ -1,61 +0,0 @@
|
|||||||
{
|
|
||||||
"plugins": ["jest", "@typescript-eslint"],
|
|
||||||
"extends": ["plugin:github/recommended"],
|
|
||||||
"parser": "@typescript-eslint/parser",
|
|
||||||
"parserOptions": {
|
|
||||||
"ecmaVersion": 9,
|
|
||||||
"sourceType": "module",
|
|
||||||
"project": "./tsconfig.json"
|
|
||||||
},
|
|
||||||
"rules": {
|
|
||||||
"no-shadow": "off",
|
|
||||||
"@typescript-eslint/no-shadow": ["error"],
|
|
||||||
"i18n-text/no-en": "off",
|
|
||||||
"eslint-comments/no-use": "off",
|
|
||||||
"import/no-namespace": "off",
|
|
||||||
"no-unused-vars": "off",
|
|
||||||
"@typescript-eslint/no-unused-vars": "error",
|
|
||||||
"@typescript-eslint/explicit-member-accessibility": [
|
|
||||||
"error",
|
|
||||||
{ "accessibility": "no-public" }
|
|
||||||
],
|
|
||||||
"@typescript-eslint/no-require-imports": "error",
|
|
||||||
"@typescript-eslint/array-type": "error",
|
|
||||||
"@typescript-eslint/await-thenable": "error",
|
|
||||||
"@typescript-eslint/ban-ts-comment": "error",
|
|
||||||
"camelcase": "off",
|
|
||||||
"@typescript-eslint/consistent-type-assertions": "error",
|
|
||||||
"@typescript-eslint/explicit-function-return-type": [
|
|
||||||
"error",
|
|
||||||
{ "allowExpressions": true }
|
|
||||||
],
|
|
||||||
"@typescript-eslint/func-call-spacing": ["error", "never"],
|
|
||||||
"@typescript-eslint/no-array-constructor": "error",
|
|
||||||
"@typescript-eslint/no-empty-interface": "error",
|
|
||||||
"@typescript-eslint/no-explicit-any": "error",
|
|
||||||
"@typescript-eslint/no-extraneous-class": "error",
|
|
||||||
"@typescript-eslint/no-for-in-array": "error",
|
|
||||||
"@typescript-eslint/no-inferrable-types": "error",
|
|
||||||
"@typescript-eslint/no-misused-new": "error",
|
|
||||||
"@typescript-eslint/no-namespace": "error",
|
|
||||||
"@typescript-eslint/no-non-null-assertion": "warn",
|
|
||||||
"@typescript-eslint/no-unnecessary-qualifier": "error",
|
|
||||||
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
||||||
"@typescript-eslint/no-useless-constructor": "error",
|
|
||||||
"@typescript-eslint/no-var-requires": "error",
|
|
||||||
"@typescript-eslint/prefer-for-of": "warn",
|
|
||||||
"@typescript-eslint/prefer-function-type": "warn",
|
|
||||||
"@typescript-eslint/prefer-includes": "error",
|
|
||||||
"@typescript-eslint/prefer-string-starts-ends-with": "error",
|
|
||||||
"@typescript-eslint/promise-function-async": "error",
|
|
||||||
"@typescript-eslint/require-array-sort-compare": "error",
|
|
||||||
"@typescript-eslint/restrict-plus-operands": "error",
|
|
||||||
"@typescript-eslint/type-annotation-spacing": "error",
|
|
||||||
"@typescript-eslint/unbound-method": "error"
|
|
||||||
},
|
|
||||||
"env": {
|
|
||||||
"node": true,
|
|
||||||
"es6": true,
|
|
||||||
"jest/globals": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
dist/
|
|
||||||
lib/
|
|
||||||
node_modules/
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"trailingComma": "all",
|
|
||||||
"proseWrap": "always"
|
|
||||||
}
|
|
||||||
31
biome.json
Normal file
31
biome.json
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
|
||||||
|
"vcs": {
|
||||||
|
"enabled": true,
|
||||||
|
"clientKind": "git",
|
||||||
|
"useIgnoreFile": false
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"ignoreUnknown": false,
|
||||||
|
"ignore": ["dist", "lib", "node_modules"]
|
||||||
|
},
|
||||||
|
"formatter": {
|
||||||
|
"enabled": true,
|
||||||
|
"indentStyle": "space"
|
||||||
|
},
|
||||||
|
"organizeImports": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"linter": {
|
||||||
|
"enabled": true,
|
||||||
|
"rules": {
|
||||||
|
"recommended": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"javascript": {
|
||||||
|
"formatter": {
|
||||||
|
"quoteStyle": "double",
|
||||||
|
"trailingCommas": "all"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
18
dist/save-cache/index.js
generated
vendored
18
dist/save-cache/index.js
generated
vendored
@@ -82951,7 +82951,7 @@ function saveCache() {
|
|||||||
core.warning("Error retrieving cache key from state.");
|
core.warning("Error retrieving cache key from state.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (matchedKey === cacheKey) {
|
if (matchedKey === cacheKey) {
|
||||||
core.info(`Cache hit occurred on key ${cacheKey}, not saving cache.`);
|
core.info(`Cache hit occurred on key ${cacheKey}, not saving cache.`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -83010,7 +83010,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.githubToken = exports.toolDir = exports.toolBinDir = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.enableCache = exports.checkSum = exports.version = void 0;
|
exports.githubToken = exports.toolDir = exports.toolBinDir = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.enableCache = exports.checkSum = exports.version = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const path_1 = __importDefault(__nccwpck_require__(1017));
|
const node_path_1 = __importDefault(__nccwpck_require__(9411));
|
||||||
exports.version = core.getInput("version");
|
exports.version = core.getInput("version");
|
||||||
exports.checkSum = core.getInput("checksum");
|
exports.checkSum = core.getInput("checksum");
|
||||||
exports.enableCache = core.getInput("enable-cache") === "true";
|
exports.enableCache = core.getInput("enable-cache") === "true";
|
||||||
@@ -83027,7 +83027,7 @@ function getToolBinDir() {
|
|||||||
}
|
}
|
||||||
if (process.platform === "win32") {
|
if (process.platform === "win32") {
|
||||||
if (process.env.RUNNER_TEMP !== undefined) {
|
if (process.env.RUNNER_TEMP !== undefined) {
|
||||||
return `${process.env.RUNNER_TEMP}${path_1.default.sep}uv-tool-bin-dir`;
|
return `${process.env.RUNNER_TEMP}${node_path_1.default.sep}uv-tool-bin-dir`;
|
||||||
}
|
}
|
||||||
throw Error("Could not determine UV_TOOL_BIN_DIR. Please make sure RUNNER_TEMP is set or provide the tool-bin-dir input");
|
throw Error("Could not determine UV_TOOL_BIN_DIR. Please make sure RUNNER_TEMP is set or provide the tool-bin-dir input");
|
||||||
}
|
}
|
||||||
@@ -83040,7 +83040,7 @@ function getToolDir() {
|
|||||||
}
|
}
|
||||||
if (process.platform === "win32") {
|
if (process.platform === "win32") {
|
||||||
if (process.env.RUNNER_TEMP !== undefined) {
|
if (process.env.RUNNER_TEMP !== undefined) {
|
||||||
return `${process.env.RUNNER_TEMP}${path_1.default.sep}uv-tool-dir`;
|
return `${process.env.RUNNER_TEMP}${node_path_1.default.sep}uv-tool-dir`;
|
||||||
}
|
}
|
||||||
throw Error("Could not determine UV_TOOL_DIR. Please make sure RUNNER_TEMP is set or provide the tool-dir input");
|
throw Error("Could not determine UV_TOOL_DIR. Please make sure RUNNER_TEMP is set or provide the tool-dir input");
|
||||||
}
|
}
|
||||||
@@ -83052,7 +83052,7 @@ function getCacheLocalPath() {
|
|||||||
return cacheLocalPathInput;
|
return cacheLocalPathInput;
|
||||||
}
|
}
|
||||||
if (process.env.RUNNER_TEMP !== undefined) {
|
if (process.env.RUNNER_TEMP !== undefined) {
|
||||||
return `${process.env.RUNNER_TEMP}${path_1.default.sep}setup-uv-cache`;
|
return `${process.env.RUNNER_TEMP}${node_path_1.default.sep}setup-uv-cache`;
|
||||||
}
|
}
|
||||||
throw Error("Could not determine UV_CACHE_DIR. Please make sure RUNNER_TEMP is set or provide the cache-local-path input");
|
throw Error("Could not determine UV_CACHE_DIR. Please make sure RUNNER_TEMP is set or provide the cache-local-path input");
|
||||||
}
|
}
|
||||||
@@ -83214,6 +83214,14 @@ module.exports = require("node:events");
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 9411:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:path");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ 4492:
|
/***/ 4492:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
|||||||
124
dist/setup/index.js
generated
vendored
124
dist/setup/index.js
generated
vendored
@@ -87831,7 +87831,7 @@ const cache = __importStar(__nccwpck_require__(7799));
|
|||||||
const glob = __importStar(__nccwpck_require__(8090));
|
const glob = __importStar(__nccwpck_require__(8090));
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const inputs_1 = __nccwpck_require__(9378);
|
const inputs_1 = __nccwpck_require__(9378);
|
||||||
const platforms_1 = __nccwpck_require__(6005);
|
const platforms_1 = __nccwpck_require__(9945);
|
||||||
exports.STATE_CACHE_KEY = "cache-key";
|
exports.STATE_CACHE_KEY = "cache-key";
|
||||||
exports.STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
exports.STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
||||||
const CACHE_VERSION = "1";
|
const CACHE_VERSION = "1";
|
||||||
@@ -87924,8 +87924,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.validateChecksum = validateChecksum;
|
exports.validateChecksum = validateChecksum;
|
||||||
exports.isknownVersion = isknownVersion;
|
exports.isknownVersion = isknownVersion;
|
||||||
const fs = __importStar(__nccwpck_require__(7147));
|
const fs = __importStar(__nccwpck_require__(7561));
|
||||||
const crypto = __importStar(__nccwpck_require__(6113));
|
const crypto = __importStar(__nccwpck_require__(6005));
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
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) {
|
||||||
@@ -87935,7 +87935,7 @@ function validateChecksum(checkSum, downloadPath, arch, platform, version) {
|
|||||||
isValid = yield validateFileCheckSum(downloadPath, checkSum);
|
isValid = yield validateFileCheckSum(downloadPath, checkSum);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
core.debug(`Checksum not provided. Checking known checksums.`);
|
core.debug("Checksum not provided. Checking known checksums.");
|
||||||
const key = `${arch}-${platform}-${version}`;
|
const key = `${arch}-${platform}-${version}`;
|
||||||
if (key in known_checksums_1.KNOWN_CHECKSUMS) {
|
if (key in known_checksums_1.KNOWN_CHECKSUMS) {
|
||||||
const knownChecksum = known_checksums_1.KNOWN_CHECKSUMS[`${arch}-${platform}-${version}`];
|
const knownChecksum = known_checksums_1.KNOWN_CHECKSUMS[`${arch}-${platform}-${version}`];
|
||||||
@@ -87985,6 +87985,78 @@ 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.20": "68d0b5dc0295baf93c2539a04f3aede44e4a7230d3c470430561ecb119ca5353",
|
||||||
|
"aarch64-apple-darwin-0.4.20": "b4a8df5b37ccc80a08a6a39647aa1b329645e932fb770158aa1453ffde11e1ab",
|
||||||
|
"aarch64-unknown-linux-gnu-0.4.20": "e7b173900e155210aebf205a3041ba8f896febb05d4863ba6390a3cb79c5a722",
|
||||||
|
"aarch64-unknown-linux-musl-0.4.20": "48373b07772021df32f7fbb38226e4ad9f3bbc27f0acf2634e0bf9591d133902",
|
||||||
|
"arm-unknown-linux-musleabihf-0.4.20": "fac2d2647ab8651743a144dc5bc9329de5b3f5724817a05c36891b6ede6e4103",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.4.20": "affeb6a9e9d03df245bb5ab252d3b3562f90228bfa4c4029842e8370445b3feb",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.4.20": "59c9bba80f7f4c91576b1add15a5d695d931833f7c9193c9dd252e2ca6786a0a",
|
||||||
|
"i686-pc-windows-msvc-0.4.20": "3abe03202575bd26fa0e7deb1790dc149f90879561a241ed04b6886461f5e3b1",
|
||||||
|
"i686-unknown-linux-gnu-0.4.20": "33a92cb1316de5e28f69e99a8e66eff435b6cc721366be31c46bf603c070d1ae",
|
||||||
|
"i686-unknown-linux-musl-0.4.20": "29547e66c0b73a15760416e57be3d1fc58eb4c9c3953f451cc2a6cb432ffacca",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.4.20": "233de85af024cc2e724829d183261df574ee69c295646f032fb9ef1da09d0791",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.4.20": "75f0f0f35fd3fd002c546765191fea45a65c88d07ef9bac8417c42acaed8b548",
|
||||||
|
"powerpc64le-unknown-linux-musl-0.4.20": "a65075eb916ca738a50e27be0d01afbd6b655ac0c67a0399e84971232ce3a637",
|
||||||
|
"s390x-unknown-linux-gnu-0.4.20": "23269967f868b2ad1b8844fefc241604e1217cc7b6e703a084e26f4bd9506d86",
|
||||||
|
"x86_64-apple-darwin-0.4.20": "d5ec2279da6bfa06d63a6a79461d07fa678a50d6aa9381d1783a6072d4df558b",
|
||||||
|
"x86_64-pc-windows-msvc-0.4.20": "f3a88e0d8a160b696fb4c838521142d2a766b6bd29915c5d5df1a2ddc531030b",
|
||||||
|
"x86_64-unknown-linux-gnu-0.4.20": "2283626b627f33382338b7621e5b1c8df5432c5deff9e64e217ff33652beb7f0",
|
||||||
|
"x86_64-unknown-linux-musl-0.4.20": "2b826106f075b11e195390385650f16df79b85ea6e51a7e1f3dbf5acd7457899",
|
||||||
|
"undefined-0.4.19": "79adb36dc4233272f863d7cbc861907ee3b91685cde6c9cac3d40ec9307de202",
|
||||||
|
"aarch64-apple-darwin-0.4.19": "6eba1317f46c1533ad3ea8098b732752d298a1b2726a87d96f146f0c45dae1cd",
|
||||||
|
"aarch64-unknown-linux-gnu-0.4.19": "290740d9b749d9ddc3e313230c88dd6618d052a4b32dc9b900d734036e5b4b31",
|
||||||
|
"aarch64-unknown-linux-musl-0.4.19": "2ae6ac4f5e3b465ced1f14520d30305924a02ab38e6c20def341b0c50f3b2d0f",
|
||||||
|
"arm-unknown-linux-musleabihf-0.4.19": "56bc058c4f92aecaa1b0843790f475d3a8d759f70d2456a64f7a804324406446",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.4.19": "7b94f62297447cdc5d9857cbef2afde685ed74c2f87e1b0606b50647f5b438a5",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.4.19": "915827e42348e93877ead47733d721579a837fe4c88e839396f5eb18afbb8bd5",
|
||||||
|
"i686-pc-windows-msvc-0.4.19": "97f827433e351140e693c05743d59bf15d5e0b784cf2a7b900113901f0f60268",
|
||||||
|
"i686-unknown-linux-gnu-0.4.19": "68b93d15880dd87da1a0866942128d637ccbd399bf4742bdfc3219364f606aea",
|
||||||
|
"i686-unknown-linux-musl-0.4.19": "df660a0c66c33bb7c59c1d1e65e352b0b2d14b04469a8448f9d80c621ef594da",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.4.19": "e1acc1ae67111b91af895a75ba743510af088d375d1d0dce5bbdb38eccc3feb7",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.4.19": "697e70caa5e4b0d0f7302b5e9e8c9b31c7ccd4e6a91cf03c52b4d783f3527341",
|
||||||
|
"powerpc64le-unknown-linux-musl-0.4.19": "3edc272f490d9758e05f1a88db6989606ed6f180c072c7913fbca8c2de2b6845",
|
||||||
|
"s390x-unknown-linux-gnu-0.4.19": "64a24a57fee65f5d54573f82354e5fb6d77753fe3ba8d8b62bf0097f76760be7",
|
||||||
|
"x86_64-apple-darwin-0.4.19": "2e591e055a2c38734cb35927aa6d7799b1d3b492bc74cede6b9b1be16163c3e2",
|
||||||
|
"x86_64-pc-windows-msvc-0.4.19": "b172ec03cbe46b6cc7a328b2cbcdb8d144f53cc18150b288b4476d58d6f69f13",
|
||||||
|
"x86_64-unknown-linux-gnu-0.4.19": "72d33be21956a1bed0621cd94ef42a22456fc2731c376947b15f581bce3355a5",
|
||||||
|
"x86_64-unknown-linux-musl-0.4.19": "34b780a752ceda46efbd5fe05ac1c058e75eb78eba5308c40c87ddf2547d0ef9",
|
||||||
|
"undefined-0.4.18": "9b2ae8c5a8db7b0106f636510b76cf21273ead5cb1162c19c7b2a5d1b1b6782e",
|
||||||
|
"aarch64-apple-darwin-0.4.18": "49929e29bad25dfdb2f4ec49973c2265fbb538ddef3b1fa46fdb20245fa7a605",
|
||||||
|
"aarch64-unknown-linux-gnu-0.4.18": "6a949b7230ea5c557faf1a2974940036b1b732d2fd073ef35b665fccc11fa34b",
|
||||||
|
"aarch64-unknown-linux-musl-0.4.18": "59d50976e32d18ea94210dcd8da4eea3306690e3edc1cb5a40342ca1f7db2c47",
|
||||||
|
"arm-unknown-linux-musleabihf-0.4.18": "13a232efd19792802831e13137efae692cb467eb17e53118e4f4dbf65fa37def",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.4.18": "15665159b7f5d27b45eb833f3448714b9069472ccd165af5b9c26ae24306a013",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.4.18": "714a63650fddc889053ad27f41ee513f2a736fbecf3fd5ba5051b7a13564d0aa",
|
||||||
|
"i686-pc-windows-msvc-0.4.18": "acc6e07df1b96e42d8e3becea4aa70110c921e6f77f69b521f7477222651bc75",
|
||||||
|
"i686-unknown-linux-gnu-0.4.18": "908df3634d34f90e49b2e5e67fb627b0a4d8c0571719c60edf28e1a1ee277154",
|
||||||
|
"i686-unknown-linux-musl-0.4.18": "48aad5171df7e21d22438bf3af3fbe6cdae409e09cee3842d5782dfd11428003",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.4.18": "0f500d33f5c52addf735329ce6818c8b9226ed379dc63593b0a6a51ef5274c04",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.4.18": "8991bddaaad0c06305dd5c4a91e3ece36016de816eeb75f6ee1e3ff9148f65b3",
|
||||||
|
"powerpc64le-unknown-linux-musl-0.4.18": "0f12157dab6cd370a5f71d9c6d83d5875a3e11ea91977e4f189115ed9f56805d",
|
||||||
|
"s390x-unknown-linux-gnu-0.4.18": "5c4c101fdf5d29677a4b7ed2bb54d0a7b5c3cfa7abadb8d9ef58f02f68703e38",
|
||||||
|
"x86_64-apple-darwin-0.4.18": "a99d009f16b6681825ab8a672f83bcf838e851a8914c497ccf65f310b5be17b9",
|
||||||
|
"x86_64-pc-windows-msvc-0.4.18": "f6cffb80499da1e3ca0a3bb4710cb3601f6933315f5568ce4b785c664d65c644",
|
||||||
|
"x86_64-unknown-linux-gnu-0.4.18": "946243fa93da15d33e2d2bb59cf9bc622806b5bf5776da8b0e27562e608ad8a1",
|
||||||
|
"x86_64-unknown-linux-musl-0.4.18": "f0cc269adcad633f06ad50755af38d8f5bf745fbe7e4edafa35cfbb286706397",
|
||||||
|
"undefined-0.4.17": "68ad7bf18029bcc9f0c8556e5fb96814fa30d8f67b3ccbc5db19e38b487c9326",
|
||||||
|
"aarch64-apple-darwin-0.4.17": "af8e68a0e831e8b482d9e2f5443af63d24d003b0c53e0d5f921c2bcb5eed1644",
|
||||||
|
"aarch64-unknown-linux-gnu-0.4.17": "5b7c0269aa15aca1f6171e06db39e24a5ec81f1b484ab382a8db218424afc5b4",
|
||||||
|
"aarch64-unknown-linux-musl-0.4.17": "7dc33d60655e7a78bf13ad68bff89da6233b24484cd01a668d72a4ca88c7e70d",
|
||||||
|
"arm-unknown-linux-musleabihf-0.4.17": "1e409703fa3639ac01d5c2b277763987b3b6e856097bb7c59dec168861ad9d9b",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.4.17": "b14484ed08fe0073db869ed73c12f2ca1d45f22daabba241e2aa12086793ba51",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.4.17": "6920000627deb6f101dd6a144f1930f4649550d9bf2eb9189fa7d38270d85900",
|
||||||
|
"i686-pc-windows-msvc-0.4.17": "c8a2c21e23694e4d8079693d8d980642ceabad7589a8da5d5c112844cd9a1530",
|
||||||
|
"i686-unknown-linux-gnu-0.4.17": "67d1ed2af42d7f355eb08325645013e24fc3797f33cfa9d5aca18f74a98c4885",
|
||||||
|
"i686-unknown-linux-musl-0.4.17": "771dbc2b9bda1653029018eb6b7e98d83935df26595a2194bc7f57251bdd9caf",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.4.17": "f2c4ea4bed0f4f42686742bc1078761a232b1ce51532169f17bd99ebb2595ec3",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.4.17": "915a06db243c43cc88f96bf271dd25a3f564ebdda097b79b6d0ee3a6835fc6e2",
|
||||||
|
"powerpc64le-unknown-linux-musl-0.4.17": "faaefdc9ed84ab263d0be277b4cccd0a7cd0870fb3bc77a50e293a5d2d74d207",
|
||||||
|
"s390x-unknown-linux-gnu-0.4.17": "a49de0293c8177367bd90c527dc88c105e100d04a866ed15898a2f9778e1c648",
|
||||||
|
"x86_64-apple-darwin-0.4.17": "7ed2445e83cb919525535774004e294061a8c79253367490647c6aab0e9d06b8",
|
||||||
|
"x86_64-pc-windows-msvc-0.4.17": "929407c72ec63c54502c3aef61a2195c2b6a145d6d4b15fd9a0528475cc5cd50",
|
||||||
|
"x86_64-unknown-linux-gnu-0.4.17": "9282496b24585c54f4cb71c1cb1dbdecd650f2311237f71ddf217f8756136f79",
|
||||||
|
"x86_64-unknown-linux-musl-0.4.17": "6f703368f2d5d4c974e3ece239f64815fb0c6e040eba078ffc87c421a9375deb",
|
||||||
"undefined-0.4.16": "942296098d4738db464ea170c654d61281f35cd98fc1ecc6c6df784ba9373bb3",
|
"undefined-0.4.16": "942296098d4738db464ea170c654d61281f35cd98fc1ecc6c6df784ba9373bb3",
|
||||||
"aarch64-apple-darwin-0.4.16": "cbfb46932ced7319e0b90cff87bfff759bc319e719cca369ace476906b178f25",
|
"aarch64-apple-darwin-0.4.16": "cbfb46932ced7319e0b90cff87bfff759bc319e719cca369ace476906b178f25",
|
||||||
"aarch64-unknown-linux-gnu-0.4.16": "c5f4f0a7acdbcb6273d117ac9a72767406e2a8da3cc2c72b5818ca08165e90c9",
|
"aarch64-unknown-linux-gnu-0.4.16": "c5f4f0a7acdbcb6273d117ac9a72767406e2a8da3cc2c72b5818ca08165e90c9",
|
||||||
@@ -89898,7 +89970,7 @@ exports.downloadLatest = downloadLatest;
|
|||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const tc = __importStar(__nccwpck_require__(7784));
|
const tc = __importStar(__nccwpck_require__(7784));
|
||||||
const exec = __importStar(__nccwpck_require__(1514));
|
const exec = __importStar(__nccwpck_require__(1514));
|
||||||
const path = __importStar(__nccwpck_require__(1017));
|
const path = __importStar(__nccwpck_require__(9411));
|
||||||
const checksum_1 = __nccwpck_require__(4622);
|
const checksum_1 = __nccwpck_require__(4622);
|
||||||
const constants_1 = __nccwpck_require__(8593);
|
const constants_1 = __nccwpck_require__(8593);
|
||||||
function downloadLatest(platform, arch, checkSum, githubToken) {
|
function downloadLatest(platform, arch, checkSum, githubToken) {
|
||||||
@@ -89948,7 +90020,7 @@ function getVersion(uvExecutablePath) {
|
|||||||
};
|
};
|
||||||
yield exec.exec(uvExecutablePath, execArgs, options);
|
yield exec.exec(uvExecutablePath, execArgs, options);
|
||||||
const parts = output.split(" ");
|
const parts = output.split(" ");
|
||||||
return parts[1];
|
return parts[1].trim();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89997,7 +90069,7 @@ exports.tryGetFromToolCache = tryGetFromToolCache;
|
|||||||
exports.downloadVersion = downloadVersion;
|
exports.downloadVersion = downloadVersion;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const tc = __importStar(__nccwpck_require__(7784));
|
const tc = __importStar(__nccwpck_require__(7784));
|
||||||
const path = __importStar(__nccwpck_require__(1017));
|
const path = __importStar(__nccwpck_require__(9411));
|
||||||
const constants_1 = __nccwpck_require__(8593);
|
const constants_1 = __nccwpck_require__(8593);
|
||||||
const checksum_1 = __nccwpck_require__(4622);
|
const checksum_1 = __nccwpck_require__(4622);
|
||||||
const github = __importStar(__nccwpck_require__(5438));
|
const github = __importStar(__nccwpck_require__(5438));
|
||||||
@@ -90106,11 +90178,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const path = __importStar(__nccwpck_require__(1017));
|
const path = __importStar(__nccwpck_require__(9411));
|
||||||
const download_version_1 = __nccwpck_require__(8841);
|
const download_version_1 = __nccwpck_require__(8841);
|
||||||
const restore_cache_1 = __nccwpck_require__(1898);
|
const restore_cache_1 = __nccwpck_require__(1898);
|
||||||
const download_latest_1 = __nccwpck_require__(5871);
|
const download_latest_1 = __nccwpck_require__(5871);
|
||||||
const platforms_1 = __nccwpck_require__(6005);
|
const platforms_1 = __nccwpck_require__(9945);
|
||||||
const inputs_1 = __nccwpck_require__(9378);
|
const inputs_1 = __nccwpck_require__(9378);
|
||||||
function run() {
|
function run() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
@@ -90259,7 +90331,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.githubToken = exports.toolDir = exports.toolBinDir = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.enableCache = exports.checkSum = exports.version = void 0;
|
exports.githubToken = exports.toolDir = exports.toolBinDir = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.enableCache = exports.checkSum = exports.version = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
const path_1 = __importDefault(__nccwpck_require__(1017));
|
const node_path_1 = __importDefault(__nccwpck_require__(9411));
|
||||||
exports.version = core.getInput("version");
|
exports.version = core.getInput("version");
|
||||||
exports.checkSum = core.getInput("checksum");
|
exports.checkSum = core.getInput("checksum");
|
||||||
exports.enableCache = core.getInput("enable-cache") === "true";
|
exports.enableCache = core.getInput("enable-cache") === "true";
|
||||||
@@ -90276,7 +90348,7 @@ function getToolBinDir() {
|
|||||||
}
|
}
|
||||||
if (process.platform === "win32") {
|
if (process.platform === "win32") {
|
||||||
if (process.env.RUNNER_TEMP !== undefined) {
|
if (process.env.RUNNER_TEMP !== undefined) {
|
||||||
return `${process.env.RUNNER_TEMP}${path_1.default.sep}uv-tool-bin-dir`;
|
return `${process.env.RUNNER_TEMP}${node_path_1.default.sep}uv-tool-bin-dir`;
|
||||||
}
|
}
|
||||||
throw Error("Could not determine UV_TOOL_BIN_DIR. Please make sure RUNNER_TEMP is set or provide the tool-bin-dir input");
|
throw Error("Could not determine UV_TOOL_BIN_DIR. Please make sure RUNNER_TEMP is set or provide the tool-bin-dir input");
|
||||||
}
|
}
|
||||||
@@ -90289,7 +90361,7 @@ function getToolDir() {
|
|||||||
}
|
}
|
||||||
if (process.platform === "win32") {
|
if (process.platform === "win32") {
|
||||||
if (process.env.RUNNER_TEMP !== undefined) {
|
if (process.env.RUNNER_TEMP !== undefined) {
|
||||||
return `${process.env.RUNNER_TEMP}${path_1.default.sep}uv-tool-dir`;
|
return `${process.env.RUNNER_TEMP}${node_path_1.default.sep}uv-tool-dir`;
|
||||||
}
|
}
|
||||||
throw Error("Could not determine UV_TOOL_DIR. Please make sure RUNNER_TEMP is set or provide the tool-dir input");
|
throw Error("Could not determine UV_TOOL_DIR. Please make sure RUNNER_TEMP is set or provide the tool-dir input");
|
||||||
}
|
}
|
||||||
@@ -90301,7 +90373,7 @@ function getCacheLocalPath() {
|
|||||||
return cacheLocalPathInput;
|
return cacheLocalPathInput;
|
||||||
}
|
}
|
||||||
if (process.env.RUNNER_TEMP !== undefined) {
|
if (process.env.RUNNER_TEMP !== undefined) {
|
||||||
return `${process.env.RUNNER_TEMP}${path_1.default.sep}setup-uv-cache`;
|
return `${process.env.RUNNER_TEMP}${node_path_1.default.sep}setup-uv-cache`;
|
||||||
}
|
}
|
||||||
throw Error("Could not determine UV_CACHE_DIR. Please make sure RUNNER_TEMP is set or provide the cache-local-path input");
|
throw Error("Could not determine UV_CACHE_DIR. Please make sure RUNNER_TEMP is set or provide the cache-local-path input");
|
||||||
}
|
}
|
||||||
@@ -90309,7 +90381,7 @@ function getCacheLocalPath() {
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 6005:
|
/***/ 9945:
|
||||||
/***/ ((__unused_webpack_module, exports) => {
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
@@ -90455,6 +90527,14 @@ module.exports = require("net");
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 6005:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:crypto");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ 5673:
|
/***/ 5673:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
@@ -90463,6 +90543,22 @@ module.exports = require("node:events");
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 7561:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:fs");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 9411:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:path");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ 4492:
|
/***/ 4492:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
|||||||
22
dist/update-known-checksums/index.js
generated
vendored
22
dist/update-known-checksums/index.js
generated
vendored
@@ -32708,24 +32708,24 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.updateChecksums = updateChecksums;
|
exports.updateChecksums = updateChecksums;
|
||||||
const fs_1 = __nccwpck_require__(7147);
|
const node_fs_1 = __nccwpck_require__(7561);
|
||||||
const tc = __importStar(__nccwpck_require__(7784));
|
const tc = __importStar(__nccwpck_require__(7784));
|
||||||
function updateChecksums(filePath, downloadUrls) {
|
function updateChecksums(filePath, downloadUrls) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
yield fs_1.promises.rm(filePath);
|
yield node_fs_1.promises.rm(filePath);
|
||||||
yield fs_1.promises.appendFile(filePath, "// AUTOGENERATED_DO_NOT_EDIT\nexport const KNOWN_CHECKSUMS: {[key: string]: string} = {\n");
|
yield node_fs_1.promises.appendFile(filePath, "// AUTOGENERATED_DO_NOT_EDIT\nexport const KNOWN_CHECKSUMS: {[key: string]: string} = {\n");
|
||||||
let firstLine = true;
|
let firstLine = true;
|
||||||
for (const downloadUrl of downloadUrls) {
|
for (const downloadUrl of downloadUrls) {
|
||||||
const content = yield downloadAssetContent(downloadUrl);
|
const content = yield downloadAssetContent(downloadUrl);
|
||||||
const checksum = content.split(" ")[0].trim();
|
const checksum = content.split(" ")[0].trim();
|
||||||
const key = getKey(downloadUrl);
|
const key = getKey(downloadUrl);
|
||||||
if (!firstLine) {
|
if (!firstLine) {
|
||||||
yield fs_1.promises.appendFile(filePath, ",\n");
|
yield node_fs_1.promises.appendFile(filePath, ",\n");
|
||||||
}
|
}
|
||||||
yield fs_1.promises.appendFile(filePath, ` '${key}':\n '${checksum}'`);
|
yield node_fs_1.promises.appendFile(filePath, ` '${key}':\n '${checksum}'`);
|
||||||
firstLine = false;
|
firstLine = false;
|
||||||
}
|
}
|
||||||
yield fs_1.promises.appendFile(filePath, "}\n");
|
yield node_fs_1.promises.appendFile(filePath, "}\n");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function getKey(downloadUrl) {
|
function getKey(downloadUrl) {
|
||||||
@@ -32739,7 +32739,7 @@ function getKey(downloadUrl) {
|
|||||||
function downloadAssetContent(downloadUrl) {
|
function downloadAssetContent(downloadUrl) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const downloadPath = yield tc.downloadTool(downloadUrl);
|
const downloadPath = yield tc.downloadTool(downloadUrl);
|
||||||
const content = yield fs_1.promises.readFile(downloadPath, "utf8");
|
const content = yield node_fs_1.promises.readFile(downloadPath, "utf8");
|
||||||
return content;
|
return content;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -32940,6 +32940,14 @@ module.exports = require("node:events");
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 7561:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:fs");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ 4492:
|
/***/ 4492:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
|||||||
5864
package-lock.json
generated
5864
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
24
package.json
24
package.json
@@ -6,9 +6,9 @@
|
|||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"format": "prettier --write .",
|
"format": "biome format --fix",
|
||||||
"format-check": "prettier --check .",
|
"format-check": "biome format",
|
||||||
"lint": "eslint src/**/*.ts --fix",
|
"lint": "biome lint --fix",
|
||||||
"package": "ncc build -o dist/setup src/setup-uv.ts && ncc build -o dist/save-cache src/save-cache.ts && ncc build -o dist/update-known-checksums src/update-known-checksums.ts",
|
"package": "ncc build -o dist/setup src/setup-uv.ts && ncc build -o dist/save-cache src/save-cache.ts && ncc build -o dist/update-known-checksums src/update-known-checksums.ts",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"act": "act pull_request -W .github/workflows/test.yml --container-architecture linux/amd64 -s GITHUB_TOKEN=\"$(gh auth token)\"",
|
"act": "act pull_request -W .github/workflows/test.yml --container-architecture linux/amd64 -s GITHUB_TOKEN=\"$(gh auth token)\"",
|
||||||
@@ -19,12 +19,7 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/astral-sh/setup-uv.git"
|
"url": "git+https://github.com/astral-sh/setup-uv.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": ["actions", "python", "setup", "uv"],
|
||||||
"actions",
|
|
||||||
"python",
|
|
||||||
"setup",
|
|
||||||
"uv"
|
|
||||||
],
|
|
||||||
"author": "@eifinger",
|
"author": "@eifinger",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -38,19 +33,12 @@
|
|||||||
"@octokit/rest": "^21.0.2"
|
"@octokit/rest": "^21.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^22.7.0",
|
"@biomejs/biome": "1.9.3",
|
||||||
|
"@types/node": "^22.7.5",
|
||||||
"@types/semver": "^7.5.8",
|
"@types/semver": "^7.5.8",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
||||||
"@typescript-eslint/parser": "^7.18.0",
|
|
||||||
"@vercel/ncc": "^0.38.1",
|
"@vercel/ncc": "^0.38.1",
|
||||||
"eslint": "^8.57.1",
|
|
||||||
"eslint-plugin-github": "^5.0.2",
|
|
||||||
"eslint-plugin-import": "^2.30.0",
|
|
||||||
"eslint-plugin-jest": "^28.8.3",
|
|
||||||
"eslint-plugin-prettier": "^5.2.1",
|
|
||||||
"jest": "^29.7.0",
|
"jest": "^29.7.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"prettier": "^3.3.3",
|
|
||||||
"ts-jest": "^29.2.5",
|
"ts-jest": "^29.2.5",
|
||||||
"typescript": "^5.6.2"
|
"typescript": "^5.6.2"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import * as fs from "fs";
|
import * as fs from "node:fs";
|
||||||
import * as crypto from "crypto";
|
import * as crypto from "node:crypto";
|
||||||
|
|
||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import { KNOWN_CHECKSUMS } from "./known-checksums";
|
import { KNOWN_CHECKSUMS } from "./known-checksums";
|
||||||
import { Architecture, Platform } from "../../utils/platforms";
|
import type { Architecture, Platform } from "../../utils/platforms";
|
||||||
|
|
||||||
export async function validateChecksum(
|
export async function validateChecksum(
|
||||||
checkSum: string | undefined,
|
checkSum: string | undefined,
|
||||||
@@ -16,7 +16,7 @@ export async function validateChecksum(
|
|||||||
if (checkSum !== undefined && checkSum !== "") {
|
if (checkSum !== undefined && checkSum !== "") {
|
||||||
isValid = await validateFileCheckSum(downloadPath, checkSum);
|
isValid = await validateFileCheckSum(downloadPath, checkSum);
|
||||||
} else {
|
} else {
|
||||||
core.debug(`Checksum not provided. Checking known checksums.`);
|
core.debug("Checksum not provided. Checking known checksums.");
|
||||||
const key = `${arch}-${platform}-${version}`;
|
const key = `${arch}-${platform}-${version}`;
|
||||||
if (key in KNOWN_CHECKSUMS) {
|
if (key in KNOWN_CHECKSUMS) {
|
||||||
const knownChecksum = KNOWN_CHECKSUMS[`${arch}-${platform}-${version}`];
|
const knownChecksum = KNOWN_CHECKSUMS[`${arch}-${platform}-${version}`];
|
||||||
|
|||||||
@@ -1,5 +1,149 @@
|
|||||||
// 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.20":
|
||||||
|
"68d0b5dc0295baf93c2539a04f3aede44e4a7230d3c470430561ecb119ca5353",
|
||||||
|
"aarch64-apple-darwin-0.4.20":
|
||||||
|
"b4a8df5b37ccc80a08a6a39647aa1b329645e932fb770158aa1453ffde11e1ab",
|
||||||
|
"aarch64-unknown-linux-gnu-0.4.20":
|
||||||
|
"e7b173900e155210aebf205a3041ba8f896febb05d4863ba6390a3cb79c5a722",
|
||||||
|
"aarch64-unknown-linux-musl-0.4.20":
|
||||||
|
"48373b07772021df32f7fbb38226e4ad9f3bbc27f0acf2634e0bf9591d133902",
|
||||||
|
"arm-unknown-linux-musleabihf-0.4.20":
|
||||||
|
"fac2d2647ab8651743a144dc5bc9329de5b3f5724817a05c36891b6ede6e4103",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.4.20":
|
||||||
|
"affeb6a9e9d03df245bb5ab252d3b3562f90228bfa4c4029842e8370445b3feb",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.4.20":
|
||||||
|
"59c9bba80f7f4c91576b1add15a5d695d931833f7c9193c9dd252e2ca6786a0a",
|
||||||
|
"i686-pc-windows-msvc-0.4.20":
|
||||||
|
"3abe03202575bd26fa0e7deb1790dc149f90879561a241ed04b6886461f5e3b1",
|
||||||
|
"i686-unknown-linux-gnu-0.4.20":
|
||||||
|
"33a92cb1316de5e28f69e99a8e66eff435b6cc721366be31c46bf603c070d1ae",
|
||||||
|
"i686-unknown-linux-musl-0.4.20":
|
||||||
|
"29547e66c0b73a15760416e57be3d1fc58eb4c9c3953f451cc2a6cb432ffacca",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.4.20":
|
||||||
|
"233de85af024cc2e724829d183261df574ee69c295646f032fb9ef1da09d0791",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.4.20":
|
||||||
|
"75f0f0f35fd3fd002c546765191fea45a65c88d07ef9bac8417c42acaed8b548",
|
||||||
|
"powerpc64le-unknown-linux-musl-0.4.20":
|
||||||
|
"a65075eb916ca738a50e27be0d01afbd6b655ac0c67a0399e84971232ce3a637",
|
||||||
|
"s390x-unknown-linux-gnu-0.4.20":
|
||||||
|
"23269967f868b2ad1b8844fefc241604e1217cc7b6e703a084e26f4bd9506d86",
|
||||||
|
"x86_64-apple-darwin-0.4.20":
|
||||||
|
"d5ec2279da6bfa06d63a6a79461d07fa678a50d6aa9381d1783a6072d4df558b",
|
||||||
|
"x86_64-pc-windows-msvc-0.4.20":
|
||||||
|
"f3a88e0d8a160b696fb4c838521142d2a766b6bd29915c5d5df1a2ddc531030b",
|
||||||
|
"x86_64-unknown-linux-gnu-0.4.20":
|
||||||
|
"2283626b627f33382338b7621e5b1c8df5432c5deff9e64e217ff33652beb7f0",
|
||||||
|
"x86_64-unknown-linux-musl-0.4.20":
|
||||||
|
"2b826106f075b11e195390385650f16df79b85ea6e51a7e1f3dbf5acd7457899",
|
||||||
|
"undefined-0.4.19":
|
||||||
|
"79adb36dc4233272f863d7cbc861907ee3b91685cde6c9cac3d40ec9307de202",
|
||||||
|
"aarch64-apple-darwin-0.4.19":
|
||||||
|
"6eba1317f46c1533ad3ea8098b732752d298a1b2726a87d96f146f0c45dae1cd",
|
||||||
|
"aarch64-unknown-linux-gnu-0.4.19":
|
||||||
|
"290740d9b749d9ddc3e313230c88dd6618d052a4b32dc9b900d734036e5b4b31",
|
||||||
|
"aarch64-unknown-linux-musl-0.4.19":
|
||||||
|
"2ae6ac4f5e3b465ced1f14520d30305924a02ab38e6c20def341b0c50f3b2d0f",
|
||||||
|
"arm-unknown-linux-musleabihf-0.4.19":
|
||||||
|
"56bc058c4f92aecaa1b0843790f475d3a8d759f70d2456a64f7a804324406446",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.4.19":
|
||||||
|
"7b94f62297447cdc5d9857cbef2afde685ed74c2f87e1b0606b50647f5b438a5",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.4.19":
|
||||||
|
"915827e42348e93877ead47733d721579a837fe4c88e839396f5eb18afbb8bd5",
|
||||||
|
"i686-pc-windows-msvc-0.4.19":
|
||||||
|
"97f827433e351140e693c05743d59bf15d5e0b784cf2a7b900113901f0f60268",
|
||||||
|
"i686-unknown-linux-gnu-0.4.19":
|
||||||
|
"68b93d15880dd87da1a0866942128d637ccbd399bf4742bdfc3219364f606aea",
|
||||||
|
"i686-unknown-linux-musl-0.4.19":
|
||||||
|
"df660a0c66c33bb7c59c1d1e65e352b0b2d14b04469a8448f9d80c621ef594da",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.4.19":
|
||||||
|
"e1acc1ae67111b91af895a75ba743510af088d375d1d0dce5bbdb38eccc3feb7",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.4.19":
|
||||||
|
"697e70caa5e4b0d0f7302b5e9e8c9b31c7ccd4e6a91cf03c52b4d783f3527341",
|
||||||
|
"powerpc64le-unknown-linux-musl-0.4.19":
|
||||||
|
"3edc272f490d9758e05f1a88db6989606ed6f180c072c7913fbca8c2de2b6845",
|
||||||
|
"s390x-unknown-linux-gnu-0.4.19":
|
||||||
|
"64a24a57fee65f5d54573f82354e5fb6d77753fe3ba8d8b62bf0097f76760be7",
|
||||||
|
"x86_64-apple-darwin-0.4.19":
|
||||||
|
"2e591e055a2c38734cb35927aa6d7799b1d3b492bc74cede6b9b1be16163c3e2",
|
||||||
|
"x86_64-pc-windows-msvc-0.4.19":
|
||||||
|
"b172ec03cbe46b6cc7a328b2cbcdb8d144f53cc18150b288b4476d58d6f69f13",
|
||||||
|
"x86_64-unknown-linux-gnu-0.4.19":
|
||||||
|
"72d33be21956a1bed0621cd94ef42a22456fc2731c376947b15f581bce3355a5",
|
||||||
|
"x86_64-unknown-linux-musl-0.4.19":
|
||||||
|
"34b780a752ceda46efbd5fe05ac1c058e75eb78eba5308c40c87ddf2547d0ef9",
|
||||||
|
"undefined-0.4.18":
|
||||||
|
"9b2ae8c5a8db7b0106f636510b76cf21273ead5cb1162c19c7b2a5d1b1b6782e",
|
||||||
|
"aarch64-apple-darwin-0.4.18":
|
||||||
|
"49929e29bad25dfdb2f4ec49973c2265fbb538ddef3b1fa46fdb20245fa7a605",
|
||||||
|
"aarch64-unknown-linux-gnu-0.4.18":
|
||||||
|
"6a949b7230ea5c557faf1a2974940036b1b732d2fd073ef35b665fccc11fa34b",
|
||||||
|
"aarch64-unknown-linux-musl-0.4.18":
|
||||||
|
"59d50976e32d18ea94210dcd8da4eea3306690e3edc1cb5a40342ca1f7db2c47",
|
||||||
|
"arm-unknown-linux-musleabihf-0.4.18":
|
||||||
|
"13a232efd19792802831e13137efae692cb467eb17e53118e4f4dbf65fa37def",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.4.18":
|
||||||
|
"15665159b7f5d27b45eb833f3448714b9069472ccd165af5b9c26ae24306a013",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.4.18":
|
||||||
|
"714a63650fddc889053ad27f41ee513f2a736fbecf3fd5ba5051b7a13564d0aa",
|
||||||
|
"i686-pc-windows-msvc-0.4.18":
|
||||||
|
"acc6e07df1b96e42d8e3becea4aa70110c921e6f77f69b521f7477222651bc75",
|
||||||
|
"i686-unknown-linux-gnu-0.4.18":
|
||||||
|
"908df3634d34f90e49b2e5e67fb627b0a4d8c0571719c60edf28e1a1ee277154",
|
||||||
|
"i686-unknown-linux-musl-0.4.18":
|
||||||
|
"48aad5171df7e21d22438bf3af3fbe6cdae409e09cee3842d5782dfd11428003",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.4.18":
|
||||||
|
"0f500d33f5c52addf735329ce6818c8b9226ed379dc63593b0a6a51ef5274c04",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.4.18":
|
||||||
|
"8991bddaaad0c06305dd5c4a91e3ece36016de816eeb75f6ee1e3ff9148f65b3",
|
||||||
|
"powerpc64le-unknown-linux-musl-0.4.18":
|
||||||
|
"0f12157dab6cd370a5f71d9c6d83d5875a3e11ea91977e4f189115ed9f56805d",
|
||||||
|
"s390x-unknown-linux-gnu-0.4.18":
|
||||||
|
"5c4c101fdf5d29677a4b7ed2bb54d0a7b5c3cfa7abadb8d9ef58f02f68703e38",
|
||||||
|
"x86_64-apple-darwin-0.4.18":
|
||||||
|
"a99d009f16b6681825ab8a672f83bcf838e851a8914c497ccf65f310b5be17b9",
|
||||||
|
"x86_64-pc-windows-msvc-0.4.18":
|
||||||
|
"f6cffb80499da1e3ca0a3bb4710cb3601f6933315f5568ce4b785c664d65c644",
|
||||||
|
"x86_64-unknown-linux-gnu-0.4.18":
|
||||||
|
"946243fa93da15d33e2d2bb59cf9bc622806b5bf5776da8b0e27562e608ad8a1",
|
||||||
|
"x86_64-unknown-linux-musl-0.4.18":
|
||||||
|
"f0cc269adcad633f06ad50755af38d8f5bf745fbe7e4edafa35cfbb286706397",
|
||||||
|
"undefined-0.4.17":
|
||||||
|
"68ad7bf18029bcc9f0c8556e5fb96814fa30d8f67b3ccbc5db19e38b487c9326",
|
||||||
|
"aarch64-apple-darwin-0.4.17":
|
||||||
|
"af8e68a0e831e8b482d9e2f5443af63d24d003b0c53e0d5f921c2bcb5eed1644",
|
||||||
|
"aarch64-unknown-linux-gnu-0.4.17":
|
||||||
|
"5b7c0269aa15aca1f6171e06db39e24a5ec81f1b484ab382a8db218424afc5b4",
|
||||||
|
"aarch64-unknown-linux-musl-0.4.17":
|
||||||
|
"7dc33d60655e7a78bf13ad68bff89da6233b24484cd01a668d72a4ca88c7e70d",
|
||||||
|
"arm-unknown-linux-musleabihf-0.4.17":
|
||||||
|
"1e409703fa3639ac01d5c2b277763987b3b6e856097bb7c59dec168861ad9d9b",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.4.17":
|
||||||
|
"b14484ed08fe0073db869ed73c12f2ca1d45f22daabba241e2aa12086793ba51",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.4.17":
|
||||||
|
"6920000627deb6f101dd6a144f1930f4649550d9bf2eb9189fa7d38270d85900",
|
||||||
|
"i686-pc-windows-msvc-0.4.17":
|
||||||
|
"c8a2c21e23694e4d8079693d8d980642ceabad7589a8da5d5c112844cd9a1530",
|
||||||
|
"i686-unknown-linux-gnu-0.4.17":
|
||||||
|
"67d1ed2af42d7f355eb08325645013e24fc3797f33cfa9d5aca18f74a98c4885",
|
||||||
|
"i686-unknown-linux-musl-0.4.17":
|
||||||
|
"771dbc2b9bda1653029018eb6b7e98d83935df26595a2194bc7f57251bdd9caf",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.4.17":
|
||||||
|
"f2c4ea4bed0f4f42686742bc1078761a232b1ce51532169f17bd99ebb2595ec3",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.4.17":
|
||||||
|
"915a06db243c43cc88f96bf271dd25a3f564ebdda097b79b6d0ee3a6835fc6e2",
|
||||||
|
"powerpc64le-unknown-linux-musl-0.4.17":
|
||||||
|
"faaefdc9ed84ab263d0be277b4cccd0a7cd0870fb3bc77a50e293a5d2d74d207",
|
||||||
|
"s390x-unknown-linux-gnu-0.4.17":
|
||||||
|
"a49de0293c8177367bd90c527dc88c105e100d04a866ed15898a2f9778e1c648",
|
||||||
|
"x86_64-apple-darwin-0.4.17":
|
||||||
|
"7ed2445e83cb919525535774004e294061a8c79253367490647c6aab0e9d06b8",
|
||||||
|
"x86_64-pc-windows-msvc-0.4.17":
|
||||||
|
"929407c72ec63c54502c3aef61a2195c2b6a145d6d4b15fd9a0528475cc5cd50",
|
||||||
|
"x86_64-unknown-linux-gnu-0.4.17":
|
||||||
|
"9282496b24585c54f4cb71c1cb1dbdecd650f2311237f71ddf217f8756136f79",
|
||||||
|
"x86_64-unknown-linux-musl-0.4.17":
|
||||||
|
"6f703368f2d5d4c974e3ece239f64815fb0c6e040eba078ffc87c421a9375deb",
|
||||||
"undefined-0.4.16":
|
"undefined-0.4.16":
|
||||||
"942296098d4738db464ea170c654d61281f35cd98fc1ecc6c6df784ba9373bb3",
|
"942296098d4738db464ea170c654d61281f35cd98fc1ecc6c6df784ba9373bb3",
|
||||||
"aarch64-apple-darwin-0.4.16":
|
"aarch64-apple-darwin-0.4.16":
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { promises as fs } from "fs";
|
import { promises as fs } from "node:fs";
|
||||||
import * as tc from "@actions/tool-cache";
|
import * as tc from "@actions/tool-cache";
|
||||||
export async function updateChecksums(
|
export async function updateChecksums(
|
||||||
filePath: string,
|
filePath: string,
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import * as tc from "@actions/tool-cache";
|
import * as tc from "@actions/tool-cache";
|
||||||
import * as exec from "@actions/exec";
|
import * as exec from "@actions/exec";
|
||||||
import * as path from "path";
|
import * as path from "node:path";
|
||||||
import { Architecture, Platform } from "../utils/platforms";
|
import type { Architecture, Platform } from "../utils/platforms";
|
||||||
import { validateChecksum } from "./checksum/checksum";
|
import { validateChecksum } from "./checksum/checksum";
|
||||||
import { OWNER, REPO, TOOL_CACHE_NAME } from "../utils/constants";
|
import { OWNER, REPO, TOOL_CACHE_NAME } from "../utils/constants";
|
||||||
|
|
||||||
@@ -67,5 +67,5 @@ async function getVersion(uvExecutablePath: string): Promise<string> {
|
|||||||
};
|
};
|
||||||
await exec.exec(uvExecutablePath, execArgs, options);
|
await exec.exec(uvExecutablePath, execArgs, options);
|
||||||
const parts = output.split(" ");
|
const parts = output.split(" ");
|
||||||
return parts[1];
|
return parts[1].trim();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import * as tc from "@actions/tool-cache";
|
import * as tc from "@actions/tool-cache";
|
||||||
import * as path from "path";
|
import * as path from "node:path";
|
||||||
import { OWNER, REPO, TOOL_CACHE_NAME } from "../utils/constants";
|
import { OWNER, REPO, TOOL_CACHE_NAME } from "../utils/constants";
|
||||||
import { Architecture, Platform } from "../utils/platforms";
|
import type { Architecture, Platform } from "../utils/platforms";
|
||||||
import { validateChecksum } from "./checksum/checksum";
|
import { validateChecksum } from "./checksum/checksum";
|
||||||
import * as github from "@actions/github";
|
import * as github from "@actions/github";
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,8 @@ async function saveCache(): Promise<void> {
|
|||||||
if (!cacheKey) {
|
if (!cacheKey) {
|
||||||
core.warning("Error retrieving cache key from state.");
|
core.warning("Error retrieving cache key from state.");
|
||||||
return;
|
return;
|
||||||
} else if (matchedKey === cacheKey) {
|
}
|
||||||
|
if (matchedKey === cacheKey) {
|
||||||
core.info(`Cache hit occurred on key ${cacheKey}, not saving cache.`);
|
core.info(`Cache hit occurred on key ${cacheKey}, not saving cache.`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import * as path from "path";
|
import * as path from "node:path";
|
||||||
import {
|
import {
|
||||||
downloadVersion,
|
downloadVersion,
|
||||||
tryGetFromToolCache,
|
tryGetFromToolCache,
|
||||||
@@ -8,10 +8,10 @@ import { restoreCache } from "./cache/restore-cache";
|
|||||||
|
|
||||||
import { downloadLatest } from "./download/download-latest";
|
import { downloadLatest } from "./download/download-latest";
|
||||||
import {
|
import {
|
||||||
Architecture,
|
type Architecture,
|
||||||
getArch,
|
getArch,
|
||||||
getPlatform,
|
getPlatform,
|
||||||
Platform,
|
type Platform,
|
||||||
} from "./utils/platforms";
|
} from "./utils/platforms";
|
||||||
import {
|
import {
|
||||||
cacheLocalPath,
|
cacheLocalPath,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import path from "path";
|
import path from "node:path";
|
||||||
|
|
||||||
export const version = core.getInput("version");
|
export const version = core.getInput("version");
|
||||||
export const checkSum = core.getInput("checksum");
|
export const checkSum = core.getInput("checksum");
|
||||||
|
|||||||
Reference in New Issue
Block a user