mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-12-19 11:04:08 +00:00
Compare commits
7 Commits
system-pac
...
v3.2.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7e15805d2 | ||
|
|
2a578ce17f | ||
|
|
6f467a02b3 | ||
|
|
d2242d1901 | ||
|
|
5552ab3709 | ||
|
|
3e4fe09ab3 | ||
|
|
56f89d8124 |
7
.github/workflows/check-dist.yml
vendored
7
.github/workflows/check-dist.yml
vendored
@@ -47,10 +47,3 @@ jobs:
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
|
||||
test-sudo-system-install:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./
|
||||
- run: uv run --python=3.13t -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --with cython cython
|
||||
|
||||
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@@ -123,10 +123,3 @@ jobs:
|
||||
uses: ./
|
||||
- run: uv tool install ruff
|
||||
- run: ruff --version
|
||||
|
||||
test-system-install:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./
|
||||
- run: uv pip install --system black
|
||||
|
||||
223
dist/save-cache/index.js
generated
vendored
223
dist/save-cache/index.js
generated
vendored
@@ -562,11 +562,11 @@ const core = __importStar(__nccwpck_require__(7484));
|
||||
const exec = __importStar(__nccwpck_require__(5236));
|
||||
const glob = __importStar(__nccwpck_require__(9688));
|
||||
const io = __importStar(__nccwpck_require__(4994));
|
||||
const crypto = __importStar(__nccwpck_require__(6982));
|
||||
const fs = __importStar(__nccwpck_require__(9896));
|
||||
const path = __importStar(__nccwpck_require__(6928));
|
||||
const semver = __importStar(__nccwpck_require__(9318));
|
||||
const util = __importStar(__nccwpck_require__(9023));
|
||||
const uuid_1 = __nccwpck_require__(7723);
|
||||
const constants_1 = __nccwpck_require__(8287);
|
||||
// From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23
|
||||
function createTempDirectory() {
|
||||
@@ -589,7 +589,7 @@ function createTempDirectory() {
|
||||
}
|
||||
tempDirectory = path.join(baseLocation, 'actions', 'temp');
|
||||
}
|
||||
const dest = path.join(tempDirectory, (0, uuid_1.v4)());
|
||||
const dest = path.join(tempDirectory, crypto.randomUUID());
|
||||
yield io.mkdirP(dest);
|
||||
return dest;
|
||||
});
|
||||
@@ -44599,7 +44599,7 @@ exports.ContextAPI = ContextAPI;
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.DiagAPI = void 0;
|
||||
const ComponentLogger_1 = __nccwpck_require__(104);
|
||||
const ComponentLogger_1 = __nccwpck_require__(7723);
|
||||
const logLevelLogger_1 = __nccwpck_require__(3514);
|
||||
const types_1 = __nccwpck_require__(2573);
|
||||
const global_utils_1 = __nccwpck_require__(9923);
|
||||
@@ -45321,7 +45321,7 @@ exports.diag = diag_1.DiagAPI.instance();
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 104:
|
||||
/***/ 7723:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
@@ -75293,221 +75293,6 @@ module.exports = {
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7723:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
var v1 = __nccwpck_require__(6626);
|
||||
var v4 = __nccwpck_require__(9021);
|
||||
|
||||
var uuid = v4;
|
||||
uuid.v1 = v1;
|
||||
uuid.v4 = v4;
|
||||
|
||||
module.exports = uuid;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8682:
|
||||
/***/ ((module) => {
|
||||
|
||||
/**
|
||||
* Convert array of 16 byte values to UUID string format of the form:
|
||||
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
||||
*/
|
||||
var byteToHex = [];
|
||||
for (var i = 0; i < 256; ++i) {
|
||||
byteToHex[i] = (i + 0x100).toString(16).substr(1);
|
||||
}
|
||||
|
||||
function bytesToUuid(buf, offset) {
|
||||
var i = offset || 0;
|
||||
var bth = byteToHex;
|
||||
// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
|
||||
return ([
|
||||
bth[buf[i++]], bth[buf[i++]],
|
||||
bth[buf[i++]], bth[buf[i++]], '-',
|
||||
bth[buf[i++]], bth[buf[i++]], '-',
|
||||
bth[buf[i++]], bth[buf[i++]], '-',
|
||||
bth[buf[i++]], bth[buf[i++]], '-',
|
||||
bth[buf[i++]], bth[buf[i++]],
|
||||
bth[buf[i++]], bth[buf[i++]],
|
||||
bth[buf[i++]], bth[buf[i++]]
|
||||
]).join('');
|
||||
}
|
||||
|
||||
module.exports = bytesToUuid;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1694:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
// Unique ID creation requires a high quality random # generator. In node.js
|
||||
// this is pretty straight-forward - we use the crypto API.
|
||||
|
||||
var crypto = __nccwpck_require__(6982);
|
||||
|
||||
module.exports = function nodeRNG() {
|
||||
return crypto.randomBytes(16);
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6626:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
var rng = __nccwpck_require__(1694);
|
||||
var bytesToUuid = __nccwpck_require__(8682);
|
||||
|
||||
// **`v1()` - Generate time-based UUID**
|
||||
//
|
||||
// Inspired by https://github.com/LiosK/UUID.js
|
||||
// and http://docs.python.org/library/uuid.html
|
||||
|
||||
var _nodeId;
|
||||
var _clockseq;
|
||||
|
||||
// Previous uuid creation time
|
||||
var _lastMSecs = 0;
|
||||
var _lastNSecs = 0;
|
||||
|
||||
// See https://github.com/uuidjs/uuid for API details
|
||||
function v1(options, buf, offset) {
|
||||
var i = buf && offset || 0;
|
||||
var b = buf || [];
|
||||
|
||||
options = options || {};
|
||||
var node = options.node || _nodeId;
|
||||
var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
|
||||
|
||||
// node and clockseq need to be initialized to random values if they're not
|
||||
// specified. We do this lazily to minimize issues related to insufficient
|
||||
// system entropy. See #189
|
||||
if (node == null || clockseq == null) {
|
||||
var seedBytes = rng();
|
||||
if (node == null) {
|
||||
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
|
||||
node = _nodeId = [
|
||||
seedBytes[0] | 0x01,
|
||||
seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
|
||||
];
|
||||
}
|
||||
if (clockseq == null) {
|
||||
// Per 4.2.2, randomize (14 bit) clockseq
|
||||
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
||||
}
|
||||
}
|
||||
|
||||
// UUID timestamps are 100 nano-second units since the Gregorian epoch,
|
||||
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
||||
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
||||
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
||||
var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
|
||||
|
||||
// Per 4.2.1.2, use count of uuid's generated during the current clock
|
||||
// cycle to simulate higher resolution clock
|
||||
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
|
||||
|
||||
// Time since last uuid creation (in msecs)
|
||||
var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
|
||||
|
||||
// Per 4.2.1.2, Bump clockseq on clock regression
|
||||
if (dt < 0 && options.clockseq === undefined) {
|
||||
clockseq = clockseq + 1 & 0x3fff;
|
||||
}
|
||||
|
||||
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
||||
// time interval
|
||||
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
||||
nsecs = 0;
|
||||
}
|
||||
|
||||
// Per 4.2.1.2 Throw error if too many uuids are requested
|
||||
if (nsecs >= 10000) {
|
||||
throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
|
||||
}
|
||||
|
||||
_lastMSecs = msecs;
|
||||
_lastNSecs = nsecs;
|
||||
_clockseq = clockseq;
|
||||
|
||||
// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
||||
msecs += 12219292800000;
|
||||
|
||||
// `time_low`
|
||||
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
||||
b[i++] = tl >>> 24 & 0xff;
|
||||
b[i++] = tl >>> 16 & 0xff;
|
||||
b[i++] = tl >>> 8 & 0xff;
|
||||
b[i++] = tl & 0xff;
|
||||
|
||||
// `time_mid`
|
||||
var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
|
||||
b[i++] = tmh >>> 8 & 0xff;
|
||||
b[i++] = tmh & 0xff;
|
||||
|
||||
// `time_high_and_version`
|
||||
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
||||
b[i++] = tmh >>> 16 & 0xff;
|
||||
|
||||
// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
||||
b[i++] = clockseq >>> 8 | 0x80;
|
||||
|
||||
// `clock_seq_low`
|
||||
b[i++] = clockseq & 0xff;
|
||||
|
||||
// `node`
|
||||
for (var n = 0; n < 6; ++n) {
|
||||
b[i + n] = node[n];
|
||||
}
|
||||
|
||||
return buf ? buf : bytesToUuid(b);
|
||||
}
|
||||
|
||||
module.exports = v1;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9021:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
var rng = __nccwpck_require__(1694);
|
||||
var bytesToUuid = __nccwpck_require__(8682);
|
||||
|
||||
function v4(options, buf, offset) {
|
||||
var i = buf && offset || 0;
|
||||
|
||||
if (typeof(options) == 'string') {
|
||||
buf = options === 'binary' ? new Array(16) : null;
|
||||
options = null;
|
||||
}
|
||||
options = options || {};
|
||||
|
||||
var rnds = options.random || (options.rng || rng)();
|
||||
|
||||
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
||||
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
||||
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
||||
|
||||
// Copy bytes to buffer, if provided
|
||||
if (buf) {
|
||||
for (var ii = 0; ii < 16; ++ii) {
|
||||
buf[i + ii] = rnds[ii];
|
||||
}
|
||||
}
|
||||
|
||||
return buf || bytesToUuid(rnds);
|
||||
}
|
||||
|
||||
module.exports = v4;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7125:
|
||||
|
||||
231
dist/setup/index.js
generated
vendored
231
dist/setup/index.js
generated
vendored
@@ -562,11 +562,11 @@ const core = __importStar(__nccwpck_require__(7484));
|
||||
const exec = __importStar(__nccwpck_require__(5236));
|
||||
const glob = __importStar(__nccwpck_require__(9688));
|
||||
const io = __importStar(__nccwpck_require__(4994));
|
||||
const crypto = __importStar(__nccwpck_require__(6982));
|
||||
const fs = __importStar(__nccwpck_require__(9896));
|
||||
const path = __importStar(__nccwpck_require__(6928));
|
||||
const semver = __importStar(__nccwpck_require__(9318));
|
||||
const util = __importStar(__nccwpck_require__(9023));
|
||||
const uuid_1 = __nccwpck_require__(7723);
|
||||
const constants_1 = __nccwpck_require__(8287);
|
||||
// From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23
|
||||
function createTempDirectory() {
|
||||
@@ -589,7 +589,7 @@ function createTempDirectory() {
|
||||
}
|
||||
tempDirectory = path.join(baseLocation, 'actions', 'temp');
|
||||
}
|
||||
const dest = path.join(tempDirectory, (0, uuid_1.v4)());
|
||||
const dest = path.join(tempDirectory, crypto.randomUUID());
|
||||
yield io.mkdirP(dest);
|
||||
return dest;
|
||||
});
|
||||
@@ -49274,7 +49274,7 @@ exports.ContextAPI = ContextAPI;
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.DiagAPI = void 0;
|
||||
const ComponentLogger_1 = __nccwpck_require__(104);
|
||||
const ComponentLogger_1 = __nccwpck_require__(7723);
|
||||
const logLevelLogger_1 = __nccwpck_require__(3514);
|
||||
const types_1 = __nccwpck_require__(2573);
|
||||
const global_utils_1 = __nccwpck_require__(9923);
|
||||
@@ -49996,7 +49996,7 @@ exports.diag = diag_1.DiagAPI.instance();
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 104:
|
||||
/***/ 7723:
|
||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
@@ -80252,21 +80252,6 @@ exports.getUserAgent = getUserAgent;
|
||||
//# sourceMappingURL=index.js.map
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 7723:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
var v1 = __nccwpck_require__(6626);
|
||||
var v4 = __nccwpck_require__(9021);
|
||||
|
||||
var uuid = v4;
|
||||
uuid.v1 = v1;
|
||||
uuid.v4 = v4;
|
||||
|
||||
module.exports = uuid;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8682:
|
||||
@@ -80315,122 +80300,6 @@ module.exports = function nodeRNG() {
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6626:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
var rng = __nccwpck_require__(1694);
|
||||
var bytesToUuid = __nccwpck_require__(8682);
|
||||
|
||||
// **`v1()` - Generate time-based UUID**
|
||||
//
|
||||
// Inspired by https://github.com/LiosK/UUID.js
|
||||
// and http://docs.python.org/library/uuid.html
|
||||
|
||||
var _nodeId;
|
||||
var _clockseq;
|
||||
|
||||
// Previous uuid creation time
|
||||
var _lastMSecs = 0;
|
||||
var _lastNSecs = 0;
|
||||
|
||||
// See https://github.com/uuidjs/uuid for API details
|
||||
function v1(options, buf, offset) {
|
||||
var i = buf && offset || 0;
|
||||
var b = buf || [];
|
||||
|
||||
options = options || {};
|
||||
var node = options.node || _nodeId;
|
||||
var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
|
||||
|
||||
// node and clockseq need to be initialized to random values if they're not
|
||||
// specified. We do this lazily to minimize issues related to insufficient
|
||||
// system entropy. See #189
|
||||
if (node == null || clockseq == null) {
|
||||
var seedBytes = rng();
|
||||
if (node == null) {
|
||||
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
|
||||
node = _nodeId = [
|
||||
seedBytes[0] | 0x01,
|
||||
seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
|
||||
];
|
||||
}
|
||||
if (clockseq == null) {
|
||||
// Per 4.2.2, randomize (14 bit) clockseq
|
||||
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
||||
}
|
||||
}
|
||||
|
||||
// UUID timestamps are 100 nano-second units since the Gregorian epoch,
|
||||
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
||||
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
||||
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
||||
var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
|
||||
|
||||
// Per 4.2.1.2, use count of uuid's generated during the current clock
|
||||
// cycle to simulate higher resolution clock
|
||||
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
|
||||
|
||||
// Time since last uuid creation (in msecs)
|
||||
var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
|
||||
|
||||
// Per 4.2.1.2, Bump clockseq on clock regression
|
||||
if (dt < 0 && options.clockseq === undefined) {
|
||||
clockseq = clockseq + 1 & 0x3fff;
|
||||
}
|
||||
|
||||
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
||||
// time interval
|
||||
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
||||
nsecs = 0;
|
||||
}
|
||||
|
||||
// Per 4.2.1.2 Throw error if too many uuids are requested
|
||||
if (nsecs >= 10000) {
|
||||
throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
|
||||
}
|
||||
|
||||
_lastMSecs = msecs;
|
||||
_lastNSecs = nsecs;
|
||||
_clockseq = clockseq;
|
||||
|
||||
// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
||||
msecs += 12219292800000;
|
||||
|
||||
// `time_low`
|
||||
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
||||
b[i++] = tl >>> 24 & 0xff;
|
||||
b[i++] = tl >>> 16 & 0xff;
|
||||
b[i++] = tl >>> 8 & 0xff;
|
||||
b[i++] = tl & 0xff;
|
||||
|
||||
// `time_mid`
|
||||
var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
|
||||
b[i++] = tmh >>> 8 & 0xff;
|
||||
b[i++] = tmh & 0xff;
|
||||
|
||||
// `time_high_and_version`
|
||||
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
||||
b[i++] = tmh >>> 16 & 0xff;
|
||||
|
||||
// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
||||
b[i++] = clockseq >>> 8 | 0x80;
|
||||
|
||||
// `clock_seq_low`
|
||||
b[i++] = clockseq & 0xff;
|
||||
|
||||
// `node`
|
||||
for (var n = 0; n < 6; ++n) {
|
||||
b[i + n] = node[n];
|
||||
}
|
||||
|
||||
return buf ? buf : bytesToUuid(b);
|
||||
}
|
||||
|
||||
module.exports = v1;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9021:
|
||||
@@ -87675,6 +87544,78 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.KNOWN_CHECKSUMS = void 0;
|
||||
// AUTOGENERATED_DO_NOT_EDIT
|
||||
exports.KNOWN_CHECKSUMS = {
|
||||
"undefined-0.4.30": "f077365676f0ed0e2275bd55015ad32f381a9d8684559ce9ee4d0e3c84906a0a",
|
||||
"aarch64-apple-darwin-0.4.30": "5fb068be1d0c77d0829a0a611a470f74318f114c4dc8671cfaf1e606ab81e40a",
|
||||
"aarch64-unknown-linux-gnu-0.4.30": "1beafc7773f20dc89154a338d5d4cfda98a8004d40249fe040806c5780ecb33f",
|
||||
"aarch64-unknown-linux-musl-0.4.30": "c6b267c78d4dd2dc90853b4dd265d9508de2b454b20ef03bd242848d5994df9c",
|
||||
"arm-unknown-linux-musleabihf-0.4.30": "1a7f220167a49128b3dce0b96b3f71ec5c8b9eb4f85c9b520f0d849c0c55f348",
|
||||
"armv7-unknown-linux-gnueabihf-0.4.30": "18f4fcdc86a9c1cb6cf65aed94ac72e9cc9486b0aa4266dec75e332d65f14cdb",
|
||||
"armv7-unknown-linux-musleabihf-0.4.30": "589a642bf0d9c9ef98a3cabb67fe87a899ada28bb576a8d3d825d4088e74848b",
|
||||
"i686-pc-windows-msvc-0.4.30": "c809f327b9347e95d5743ff65538d31fff2ca2bd7a1504d3abe19641d66256bc",
|
||||
"i686-unknown-linux-gnu-0.4.30": "66b3193e64a97249f24b8f743957a65c8e28ffcb951d048e37067d4003604568",
|
||||
"i686-unknown-linux-musl-0.4.30": "550e5643bf396bcc6f5ef44bee1da0e8ac934fccbc4bb5c9d0a4642c55b15c5a",
|
||||
"powerpc64-unknown-linux-gnu-0.4.30": "134fa292c8a51520b9c5cc25a486d5420a2b902b40a27c172844bb1ae741b468",
|
||||
"powerpc64le-unknown-linux-gnu-0.4.30": "92e9e1c766108be851fbf7a6fb9e6152d98582d7cb32c1501ee088f524514815",
|
||||
"powerpc64le-unknown-linux-musl-0.4.30": "4f5c6b7eeabd81bf9a12cb4d709d9ababa89ab2ac2e53c765de50dce342b6f06",
|
||||
"s390x-unknown-linux-gnu-0.4.30": "b894d5f74d7b250805b12d0d241528023c611bc6331303ce4581c1518ba00cc9",
|
||||
"x86_64-apple-darwin-0.4.30": "a56b550c08e3315bfa450c134410bbe91318ae2f39a0ce2649b882a76cd9b601",
|
||||
"x86_64-pc-windows-msvc-0.4.30": "0a2315679441bb3f861b814fd3900a3f2bbf05d7f77eb43612371f9710f1feb4",
|
||||
"x86_64-unknown-linux-gnu-0.4.30": "5637be5d163ccdcb9f0fe625890d84bbc3596810320be1f56b53bb111edb5dd7",
|
||||
"x86_64-unknown-linux-musl-0.4.30": "f01c55c20eb356bfb7316020ec79d18ac2846ce2dd5bc68ef68858810ccac7c5",
|
||||
"undefined-0.4.29": "259a292505fe1dbb59de3018b44a0627880365d2076e53ab910536fe224dd7b7",
|
||||
"aarch64-apple-darwin-0.4.29": "0679dd093e97c1d8996caee91ce5aed76533f023fef639b281b2479574d22338",
|
||||
"aarch64-unknown-linux-gnu-0.4.29": "985f7909af497dce312fe57c6f34d8e7a213445ebb219dd002bc4f0b60261b2a",
|
||||
"aarch64-unknown-linux-musl-0.4.29": "5c052a5ffcfe3e9ebf42bd0af57c1be76842cee3aaec74c0c87d57882b53eb1e",
|
||||
"arm-unknown-linux-musleabihf-0.4.29": "39aa63a330bd6eb458965fed2dff31511c75ff3c9da17640f30742a7d698529d",
|
||||
"armv7-unknown-linux-gnueabihf-0.4.29": "4c515eab94b3c008ce4cbfb082f3f804827793495ab4d72b5643bfdfe582ce52",
|
||||
"armv7-unknown-linux-musleabihf-0.4.29": "28f0aef0e5b667c9e131345215915dde3e95e73f6c9c7fc06efd2df6efdf92e2",
|
||||
"i686-pc-windows-msvc-0.4.29": "3d22457614bd80280d385166da1e38e4e046610730be5e1a74e053b7ffc4a1ab",
|
||||
"i686-unknown-linux-gnu-0.4.29": "660736950f58bfbe2c2ed2427c93d54dd733f002dd6057e174ab906cb6d51488",
|
||||
"i686-unknown-linux-musl-0.4.29": "c4d398316eaaa0d9a024370d8e4694fbca4c8afb5d86911b612a823d1a2bdf08",
|
||||
"powerpc64-unknown-linux-gnu-0.4.29": "f256106ee2a69ac3b632e65f8d240b6f01f1150c98c343386d3729eaa580a7c0",
|
||||
"powerpc64le-unknown-linux-gnu-0.4.29": "a81f1c190562b372f081b630be7b459e66a151b1a18c09bfb1a1944b3a560cc1",
|
||||
"powerpc64le-unknown-linux-musl-0.4.29": "3fcfe1b5d0e6b4e81d852d0d60adcafe1e8c49f03e14cd9bec8607cef198fd80",
|
||||
"s390x-unknown-linux-gnu-0.4.29": "d55dc29f3b071cbb873a099144be6e498bf6961e5acf0d6f75e18791667574a4",
|
||||
"x86_64-apple-darwin-0.4.29": "3c0336e162707938b6b37d516522607128045f9cdd8443b5ff6434df4c66c97e",
|
||||
"x86_64-pc-windows-msvc-0.4.29": "5b7c6d0ee94a6b389fa289d09642352793dc972701a6ad50a73a02431f392e17",
|
||||
"x86_64-unknown-linux-gnu-0.4.29": "c755b97c0c555eb449538b6d8c7cc5555a5668f08ff23a300eb874277fa58668",
|
||||
"x86_64-unknown-linux-musl-0.4.29": "3b4030b5f4c0a57c5f2691db47c29c8e14d3712ea81dae0c7fdae0034ae1f353",
|
||||
"undefined-0.4.28": "cf9d32e161ada0695823066037e3ec3eae49ace36ddcf38020be06891b6c714a",
|
||||
"aarch64-apple-darwin-0.4.28": "ac75193926e6295ee0b8715296054b48b758f63fcf3732d8538c69140b9793f4",
|
||||
"aarch64-unknown-linux-gnu-0.4.28": "d7dcda636da601a9f5578e5448eb6de00f56a06e37bdb05d6669f91ed7191555",
|
||||
"aarch64-unknown-linux-musl-0.4.28": "a18f1d1a356bfa0b20b0218f5d83a05da38380b087ffe56ab82adbeb9ab5c1f1",
|
||||
"arm-unknown-linux-musleabihf-0.4.28": "2742349f37c96b0bbfecc6c4c240c17cfbbe247470cb2b3e2c18af05ccd4e795",
|
||||
"armv7-unknown-linux-gnueabihf-0.4.28": "2df2aced6e8fb601bfd0f0a17bc82c5d35d0117a9df8ef14ddef6693b8c38d48",
|
||||
"armv7-unknown-linux-musleabihf-0.4.28": "94c3960e02899e839d3fed43de61208281e3b81b72c4934172b369ef647660ee",
|
||||
"i686-pc-windows-msvc-0.4.28": "118bbc97bd416b63b0d49ed20f198ac3801bcd177598fa431f87fa30aac5c8b0",
|
||||
"i686-unknown-linux-gnu-0.4.28": "5bc1598815cc261b01d107252b653617b4e2601f5c27780cbfc2d8caaa26001a",
|
||||
"i686-unknown-linux-musl-0.4.28": "e80d6481943123fcc29f86dcdd723a3a3680dc0c3420010823016f1f7b572b0b",
|
||||
"powerpc64-unknown-linux-gnu-0.4.28": "91a7b40a678119451250126816b773dc73f3f54c8339e5693f28087214f2d3b0",
|
||||
"powerpc64le-unknown-linux-gnu-0.4.28": "b041d98ca978c09e4d957b9a55d997b63d8b9c97675b32c88e7973187aa9da7a",
|
||||
"powerpc64le-unknown-linux-musl-0.4.28": "7ad21951e1cdf66a9ca2402aaee294e0d62922b01049bc48132373c1d9500176",
|
||||
"s390x-unknown-linux-gnu-0.4.28": "b46121ac837af41fbeba0a1caabd62413a33a6f638a4650b3123385e92580d5f",
|
||||
"x86_64-apple-darwin-0.4.28": "445e3f3ef48725bfd838f7ce3163cd7757797186ea2c89f6d374e6fffe24cc8b",
|
||||
"x86_64-pc-windows-msvc-0.4.28": "8341760e108c8584c5d3ce4ff45d174cbb5f9ba5adf1a97c50af14f47f3b7699",
|
||||
"x86_64-unknown-linux-gnu-0.4.28": "fa0183aa09a410bec74c70f4e750ab6f9e91c152a452da4a06692938a3d5556d",
|
||||
"x86_64-unknown-linux-musl-0.4.28": "6c0317109500cd38cb27dfe1e8d0fad032caaab1afaa1062a7a9480606da6cac",
|
||||
"undefined-0.4.27": "6ebf2732b3c4af6c0d433258cd938c40193602ddccf4996a757e2d5392a6b22b",
|
||||
"aarch64-apple-darwin-0.4.27": "f2424efb16c5e646901a8c09b604e3cec3adfa871481c401947a4ae8476ae02f",
|
||||
"aarch64-unknown-linux-gnu-0.4.27": "474ec2797950ccb0ed7a7300a20d9b84e0af71cac48d24ed8dacb0ab3e8ffd73",
|
||||
"aarch64-unknown-linux-musl-0.4.27": "31a6aaa90b9948c1b738a0e30ae80f1e0d69938a7e76f5ef7d755d619547e7d8",
|
||||
"arm-unknown-linux-musleabihf-0.4.27": "7e2ad3c1a30580ec6e7065ac12737b8a078c81d30de54b24717ecfc6caa7b364",
|
||||
"armv7-unknown-linux-gnueabihf-0.4.27": "8b5b195913bfbcfe0cdfc013d6a3e073afbde347b68261c66d4fbb182ab5b073",
|
||||
"armv7-unknown-linux-musleabihf-0.4.27": "70bb9bc564fc88a4b76b55c6ec9c8e3e6a3f7cdcbb05affd93bed5e9bc26f71a",
|
||||
"i686-pc-windows-msvc-0.4.27": "5dd59d011bf19968628a25a76ff7e7d0ff5ed0b43ba1c6bc0e2ce960802048bf",
|
||||
"i686-unknown-linux-gnu-0.4.27": "23fd57db751b7e919ba72c0c38566ddab808447b74ab582cd80580733c781f65",
|
||||
"i686-unknown-linux-musl-0.4.27": "f21a27146c88107597440d79f3cc9c5d40a049b2e8241f11cdeafd0f74b91d70",
|
||||
"powerpc64-unknown-linux-gnu-0.4.27": "ed16a3983285267abe92309219694cf06f8711d217f9aa609638d756201a442a",
|
||||
"powerpc64le-unknown-linux-gnu-0.4.27": "ec0f343b330d380dca7808be3262d55c5559fdbc09abafcafc9ab2396fb108a3",
|
||||
"powerpc64le-unknown-linux-musl-0.4.27": "7fd1b021b807e255c7742e8a0b0ac6738742a6faedee16229f9cac6a27f3283d",
|
||||
"s390x-unknown-linux-gnu-0.4.27": "d6ec2c48705f0e3eb319cafcd3fe7265f7ad831a4ce9f75ccec2f45f2ee18cda",
|
||||
"x86_64-apple-darwin-0.4.27": "607810910c630333a6dca3e75257bc69ccaf0531febde41c00c7e7ac2b173d3d",
|
||||
"x86_64-pc-windows-msvc-0.4.27": "6ad21f2d42ff61740666133de00b6195bcb806780d08d7734d1ba1adad940700",
|
||||
"x86_64-unknown-linux-gnu-0.4.27": "5565ad9d050a08fef2951d28aef1372ccfe39ccd41dec6fea13167589baae087",
|
||||
"x86_64-unknown-linux-musl-0.4.27": "6b8233d4890b28575f3636f974d906089b9c4a6e9903ddfea257a2f16f3ca28a",
|
||||
"undefined-0.4.26": "5b36575a355193cb3dd3461e477ad7bfddf12d67d941f805caa4aaff52157491",
|
||||
"aarch64-apple-darwin-0.4.26": "42cdc5e7adad5348c8763ec3d57ef7972a25c034121d13424614b83849585303",
|
||||
"aarch64-unknown-linux-gnu-0.4.26": "3f4bd759d3c089b6db87b278642aac1a681ef22a0d413dc3d6da7afb0606649b",
|
||||
@@ -89774,15 +89715,13 @@ const constants_1 = __nccwpck_require__(6156);
|
||||
function downloadLatest(platform, arch, checkSum, githubToken) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const artifact = `uv-${arch}-${platform}`;
|
||||
let downloadUrl = `https://github.com/${constants_1.OWNER}/${constants_1.REPO}/releases/latest/download/${artifact}`;
|
||||
let extension = ".tar.gz";
|
||||
if (platform === "pc-windows-msvc") {
|
||||
downloadUrl += ".zip";
|
||||
}
|
||||
else {
|
||||
downloadUrl += ".tar.gz";
|
||||
extension = ".zip";
|
||||
}
|
||||
const downloadUrl = `https://github.com/${constants_1.OWNER}/${constants_1.REPO}/releases/latest/download/${artifact}${extension}`;
|
||||
core.info(`Downloading uv from "${downloadUrl}" ...`);
|
||||
const downloadPath = yield tc.downloadTool(downloadUrl, undefined, githubToken);
|
||||
const downloadPath = yield tc.downloadTool(downloadUrl, `${artifact}${extension}`, githubToken);
|
||||
let uvExecutablePath;
|
||||
let uvDir;
|
||||
if (platform === "pc-windows-msvc") {
|
||||
@@ -89886,15 +89825,13 @@ function downloadVersion(platform, arch, version, checkSum, githubToken) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const resolvedVersion = yield resolveVersion(version, githubToken);
|
||||
const artifact = `uv-${arch}-${platform}`;
|
||||
let downloadUrl = `https://github.com/${constants_1.OWNER}/${constants_1.REPO}/releases/download/${resolvedVersion}/${artifact}`;
|
||||
let extension = ".tar.gz";
|
||||
if (platform === "pc-windows-msvc") {
|
||||
downloadUrl += ".zip";
|
||||
}
|
||||
else {
|
||||
downloadUrl += ".tar.gz";
|
||||
extension = ".zip";
|
||||
}
|
||||
const downloadUrl = `https://github.com/${constants_1.OWNER}/${constants_1.REPO}/releases/download/${resolvedVersion}/${artifact}${extension}`;
|
||||
core.info(`Downloading uv from "${downloadUrl}" ...`);
|
||||
const downloadPath = yield tc.downloadTool(downloadUrl, undefined, githubToken);
|
||||
const downloadPath = yield tc.downloadTool(downloadUrl, `${artifact}${extension}`, githubToken);
|
||||
yield (0, checksum_1.validateChecksum)(checkSum, downloadPath, arch, platform, resolvedVersion);
|
||||
let uvDir;
|
||||
if (platform === "pc-windows-msvc") {
|
||||
|
||||
42
package-lock.json
generated
42
package-lock.json
generated
@@ -9,7 +9,7 @@
|
||||
"version": "1.0.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/cache": "^3.2.4",
|
||||
"@actions/cache": "^3.3.0",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^6.0.0",
|
||||
@@ -20,7 +20,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.9.4",
|
||||
"@types/node": "^22.7.9",
|
||||
"@types/node": "^22.9.0",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@vercel/ncc": "^0.38.2",
|
||||
"jest": "^29.7.0",
|
||||
@@ -30,11 +30,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/cache": {
|
||||
"version": "3.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.2.4.tgz",
|
||||
"integrity": "sha512-RuHnwfcDagtX+37s0ZWy7clbOfnZ7AlDJQ7k/9rzt2W4Gnwde3fa/qjSjVuz4vLcLIpc7fUob27CMrqiWZytYA==",
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.3.0.tgz",
|
||||
"integrity": "sha512-+eCsMTIZUEm+QA9GqjollOhCdvRrZ1JV8d9Rp34zVNizBkYITO8dhKczP5Xps1dFzc5n59p7vYVtZrGt18bb5Q==",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.0.1",
|
||||
"@actions/glob": "^0.1.0",
|
||||
"@actions/http-client": "^2.1.1",
|
||||
@@ -42,8 +42,7 @@
|
||||
"@azure/abort-controller": "^1.1.0",
|
||||
"@azure/ms-rest-js": "^2.6.0",
|
||||
"@azure/storage-blob": "^12.13.0",
|
||||
"semver": "^6.3.1",
|
||||
"uuid": "^3.3.3"
|
||||
"semver": "^6.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/cache/node_modules/@actions/glob": {
|
||||
@@ -2026,11 +2025,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "22.7.9",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.9.tgz",
|
||||
"integrity": "sha512-jrTfRC7FM6nChvU7X2KqcrgquofrWLFDeYC1hKfwNWomVvrn7JIksqf344WN2X/y8xrgqBd2dJATZV4GbatBfg==",
|
||||
"version": "22.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.0.tgz",
|
||||
"integrity": "sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==",
|
||||
"dependencies": {
|
||||
"undici-types": "~6.19.2"
|
||||
"undici-types": "~6.19.8"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node-fetch": {
|
||||
@@ -4887,11 +4886,11 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/cache": {
|
||||
"version": "3.2.4",
|
||||
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.2.4.tgz",
|
||||
"integrity": "sha512-RuHnwfcDagtX+37s0ZWy7clbOfnZ7AlDJQ7k/9rzt2W4Gnwde3fa/qjSjVuz4vLcLIpc7fUob27CMrqiWZytYA==",
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-3.3.0.tgz",
|
||||
"integrity": "sha512-+eCsMTIZUEm+QA9GqjollOhCdvRrZ1JV8d9Rp34zVNizBkYITO8dhKczP5Xps1dFzc5n59p7vYVtZrGt18bb5Q==",
|
||||
"requires": {
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.0.1",
|
||||
"@actions/glob": "^0.1.0",
|
||||
"@actions/http-client": "^2.1.1",
|
||||
@@ -4899,8 +4898,7 @@
|
||||
"@azure/abort-controller": "^1.1.0",
|
||||
"@azure/ms-rest-js": "^2.6.0",
|
||||
"@azure/storage-blob": "^12.13.0",
|
||||
"semver": "^6.3.1",
|
||||
"uuid": "^3.3.3"
|
||||
"semver": "^6.3.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@actions/glob": {
|
||||
@@ -6466,11 +6464,11 @@
|
||||
}
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "22.7.9",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.9.tgz",
|
||||
"integrity": "sha512-jrTfRC7FM6nChvU7X2KqcrgquofrWLFDeYC1hKfwNWomVvrn7JIksqf344WN2X/y8xrgqBd2dJATZV4GbatBfg==",
|
||||
"version": "22.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.0.tgz",
|
||||
"integrity": "sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==",
|
||||
"requires": {
|
||||
"undici-types": "~6.19.2"
|
||||
"undici-types": "~6.19.8"
|
||||
}
|
||||
},
|
||||
"@types/node-fetch": {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"author": "@eifinger",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/cache": "^3.2.4",
|
||||
"@actions/cache": "^3.3.0",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^6.0.0",
|
||||
@@ -34,7 +34,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.9.4",
|
||||
"@types/node": "^22.7.9",
|
||||
"@types/node": "^22.9.0",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@vercel/ncc": "^0.38.2",
|
||||
"jest": "^29.7.0",
|
||||
|
||||
@@ -1,5 +1,149 @@
|
||||
// AUTOGENERATED_DO_NOT_EDIT
|
||||
export const KNOWN_CHECKSUMS: { [key: string]: string } = {
|
||||
"undefined-0.4.30":
|
||||
"f077365676f0ed0e2275bd55015ad32f381a9d8684559ce9ee4d0e3c84906a0a",
|
||||
"aarch64-apple-darwin-0.4.30":
|
||||
"5fb068be1d0c77d0829a0a611a470f74318f114c4dc8671cfaf1e606ab81e40a",
|
||||
"aarch64-unknown-linux-gnu-0.4.30":
|
||||
"1beafc7773f20dc89154a338d5d4cfda98a8004d40249fe040806c5780ecb33f",
|
||||
"aarch64-unknown-linux-musl-0.4.30":
|
||||
"c6b267c78d4dd2dc90853b4dd265d9508de2b454b20ef03bd242848d5994df9c",
|
||||
"arm-unknown-linux-musleabihf-0.4.30":
|
||||
"1a7f220167a49128b3dce0b96b3f71ec5c8b9eb4f85c9b520f0d849c0c55f348",
|
||||
"armv7-unknown-linux-gnueabihf-0.4.30":
|
||||
"18f4fcdc86a9c1cb6cf65aed94ac72e9cc9486b0aa4266dec75e332d65f14cdb",
|
||||
"armv7-unknown-linux-musleabihf-0.4.30":
|
||||
"589a642bf0d9c9ef98a3cabb67fe87a899ada28bb576a8d3d825d4088e74848b",
|
||||
"i686-pc-windows-msvc-0.4.30":
|
||||
"c809f327b9347e95d5743ff65538d31fff2ca2bd7a1504d3abe19641d66256bc",
|
||||
"i686-unknown-linux-gnu-0.4.30":
|
||||
"66b3193e64a97249f24b8f743957a65c8e28ffcb951d048e37067d4003604568",
|
||||
"i686-unknown-linux-musl-0.4.30":
|
||||
"550e5643bf396bcc6f5ef44bee1da0e8ac934fccbc4bb5c9d0a4642c55b15c5a",
|
||||
"powerpc64-unknown-linux-gnu-0.4.30":
|
||||
"134fa292c8a51520b9c5cc25a486d5420a2b902b40a27c172844bb1ae741b468",
|
||||
"powerpc64le-unknown-linux-gnu-0.4.30":
|
||||
"92e9e1c766108be851fbf7a6fb9e6152d98582d7cb32c1501ee088f524514815",
|
||||
"powerpc64le-unknown-linux-musl-0.4.30":
|
||||
"4f5c6b7eeabd81bf9a12cb4d709d9ababa89ab2ac2e53c765de50dce342b6f06",
|
||||
"s390x-unknown-linux-gnu-0.4.30":
|
||||
"b894d5f74d7b250805b12d0d241528023c611bc6331303ce4581c1518ba00cc9",
|
||||
"x86_64-apple-darwin-0.4.30":
|
||||
"a56b550c08e3315bfa450c134410bbe91318ae2f39a0ce2649b882a76cd9b601",
|
||||
"x86_64-pc-windows-msvc-0.4.30":
|
||||
"0a2315679441bb3f861b814fd3900a3f2bbf05d7f77eb43612371f9710f1feb4",
|
||||
"x86_64-unknown-linux-gnu-0.4.30":
|
||||
"5637be5d163ccdcb9f0fe625890d84bbc3596810320be1f56b53bb111edb5dd7",
|
||||
"x86_64-unknown-linux-musl-0.4.30":
|
||||
"f01c55c20eb356bfb7316020ec79d18ac2846ce2dd5bc68ef68858810ccac7c5",
|
||||
"undefined-0.4.29":
|
||||
"259a292505fe1dbb59de3018b44a0627880365d2076e53ab910536fe224dd7b7",
|
||||
"aarch64-apple-darwin-0.4.29":
|
||||
"0679dd093e97c1d8996caee91ce5aed76533f023fef639b281b2479574d22338",
|
||||
"aarch64-unknown-linux-gnu-0.4.29":
|
||||
"985f7909af497dce312fe57c6f34d8e7a213445ebb219dd002bc4f0b60261b2a",
|
||||
"aarch64-unknown-linux-musl-0.4.29":
|
||||
"5c052a5ffcfe3e9ebf42bd0af57c1be76842cee3aaec74c0c87d57882b53eb1e",
|
||||
"arm-unknown-linux-musleabihf-0.4.29":
|
||||
"39aa63a330bd6eb458965fed2dff31511c75ff3c9da17640f30742a7d698529d",
|
||||
"armv7-unknown-linux-gnueabihf-0.4.29":
|
||||
"4c515eab94b3c008ce4cbfb082f3f804827793495ab4d72b5643bfdfe582ce52",
|
||||
"armv7-unknown-linux-musleabihf-0.4.29":
|
||||
"28f0aef0e5b667c9e131345215915dde3e95e73f6c9c7fc06efd2df6efdf92e2",
|
||||
"i686-pc-windows-msvc-0.4.29":
|
||||
"3d22457614bd80280d385166da1e38e4e046610730be5e1a74e053b7ffc4a1ab",
|
||||
"i686-unknown-linux-gnu-0.4.29":
|
||||
"660736950f58bfbe2c2ed2427c93d54dd733f002dd6057e174ab906cb6d51488",
|
||||
"i686-unknown-linux-musl-0.4.29":
|
||||
"c4d398316eaaa0d9a024370d8e4694fbca4c8afb5d86911b612a823d1a2bdf08",
|
||||
"powerpc64-unknown-linux-gnu-0.4.29":
|
||||
"f256106ee2a69ac3b632e65f8d240b6f01f1150c98c343386d3729eaa580a7c0",
|
||||
"powerpc64le-unknown-linux-gnu-0.4.29":
|
||||
"a81f1c190562b372f081b630be7b459e66a151b1a18c09bfb1a1944b3a560cc1",
|
||||
"powerpc64le-unknown-linux-musl-0.4.29":
|
||||
"3fcfe1b5d0e6b4e81d852d0d60adcafe1e8c49f03e14cd9bec8607cef198fd80",
|
||||
"s390x-unknown-linux-gnu-0.4.29":
|
||||
"d55dc29f3b071cbb873a099144be6e498bf6961e5acf0d6f75e18791667574a4",
|
||||
"x86_64-apple-darwin-0.4.29":
|
||||
"3c0336e162707938b6b37d516522607128045f9cdd8443b5ff6434df4c66c97e",
|
||||
"x86_64-pc-windows-msvc-0.4.29":
|
||||
"5b7c6d0ee94a6b389fa289d09642352793dc972701a6ad50a73a02431f392e17",
|
||||
"x86_64-unknown-linux-gnu-0.4.29":
|
||||
"c755b97c0c555eb449538b6d8c7cc5555a5668f08ff23a300eb874277fa58668",
|
||||
"x86_64-unknown-linux-musl-0.4.29":
|
||||
"3b4030b5f4c0a57c5f2691db47c29c8e14d3712ea81dae0c7fdae0034ae1f353",
|
||||
"undefined-0.4.28":
|
||||
"cf9d32e161ada0695823066037e3ec3eae49ace36ddcf38020be06891b6c714a",
|
||||
"aarch64-apple-darwin-0.4.28":
|
||||
"ac75193926e6295ee0b8715296054b48b758f63fcf3732d8538c69140b9793f4",
|
||||
"aarch64-unknown-linux-gnu-0.4.28":
|
||||
"d7dcda636da601a9f5578e5448eb6de00f56a06e37bdb05d6669f91ed7191555",
|
||||
"aarch64-unknown-linux-musl-0.4.28":
|
||||
"a18f1d1a356bfa0b20b0218f5d83a05da38380b087ffe56ab82adbeb9ab5c1f1",
|
||||
"arm-unknown-linux-musleabihf-0.4.28":
|
||||
"2742349f37c96b0bbfecc6c4c240c17cfbbe247470cb2b3e2c18af05ccd4e795",
|
||||
"armv7-unknown-linux-gnueabihf-0.4.28":
|
||||
"2df2aced6e8fb601bfd0f0a17bc82c5d35d0117a9df8ef14ddef6693b8c38d48",
|
||||
"armv7-unknown-linux-musleabihf-0.4.28":
|
||||
"94c3960e02899e839d3fed43de61208281e3b81b72c4934172b369ef647660ee",
|
||||
"i686-pc-windows-msvc-0.4.28":
|
||||
"118bbc97bd416b63b0d49ed20f198ac3801bcd177598fa431f87fa30aac5c8b0",
|
||||
"i686-unknown-linux-gnu-0.4.28":
|
||||
"5bc1598815cc261b01d107252b653617b4e2601f5c27780cbfc2d8caaa26001a",
|
||||
"i686-unknown-linux-musl-0.4.28":
|
||||
"e80d6481943123fcc29f86dcdd723a3a3680dc0c3420010823016f1f7b572b0b",
|
||||
"powerpc64-unknown-linux-gnu-0.4.28":
|
||||
"91a7b40a678119451250126816b773dc73f3f54c8339e5693f28087214f2d3b0",
|
||||
"powerpc64le-unknown-linux-gnu-0.4.28":
|
||||
"b041d98ca978c09e4d957b9a55d997b63d8b9c97675b32c88e7973187aa9da7a",
|
||||
"powerpc64le-unknown-linux-musl-0.4.28":
|
||||
"7ad21951e1cdf66a9ca2402aaee294e0d62922b01049bc48132373c1d9500176",
|
||||
"s390x-unknown-linux-gnu-0.4.28":
|
||||
"b46121ac837af41fbeba0a1caabd62413a33a6f638a4650b3123385e92580d5f",
|
||||
"x86_64-apple-darwin-0.4.28":
|
||||
"445e3f3ef48725bfd838f7ce3163cd7757797186ea2c89f6d374e6fffe24cc8b",
|
||||
"x86_64-pc-windows-msvc-0.4.28":
|
||||
"8341760e108c8584c5d3ce4ff45d174cbb5f9ba5adf1a97c50af14f47f3b7699",
|
||||
"x86_64-unknown-linux-gnu-0.4.28":
|
||||
"fa0183aa09a410bec74c70f4e750ab6f9e91c152a452da4a06692938a3d5556d",
|
||||
"x86_64-unknown-linux-musl-0.4.28":
|
||||
"6c0317109500cd38cb27dfe1e8d0fad032caaab1afaa1062a7a9480606da6cac",
|
||||
"undefined-0.4.27":
|
||||
"6ebf2732b3c4af6c0d433258cd938c40193602ddccf4996a757e2d5392a6b22b",
|
||||
"aarch64-apple-darwin-0.4.27":
|
||||
"f2424efb16c5e646901a8c09b604e3cec3adfa871481c401947a4ae8476ae02f",
|
||||
"aarch64-unknown-linux-gnu-0.4.27":
|
||||
"474ec2797950ccb0ed7a7300a20d9b84e0af71cac48d24ed8dacb0ab3e8ffd73",
|
||||
"aarch64-unknown-linux-musl-0.4.27":
|
||||
"31a6aaa90b9948c1b738a0e30ae80f1e0d69938a7e76f5ef7d755d619547e7d8",
|
||||
"arm-unknown-linux-musleabihf-0.4.27":
|
||||
"7e2ad3c1a30580ec6e7065ac12737b8a078c81d30de54b24717ecfc6caa7b364",
|
||||
"armv7-unknown-linux-gnueabihf-0.4.27":
|
||||
"8b5b195913bfbcfe0cdfc013d6a3e073afbde347b68261c66d4fbb182ab5b073",
|
||||
"armv7-unknown-linux-musleabihf-0.4.27":
|
||||
"70bb9bc564fc88a4b76b55c6ec9c8e3e6a3f7cdcbb05affd93bed5e9bc26f71a",
|
||||
"i686-pc-windows-msvc-0.4.27":
|
||||
"5dd59d011bf19968628a25a76ff7e7d0ff5ed0b43ba1c6bc0e2ce960802048bf",
|
||||
"i686-unknown-linux-gnu-0.4.27":
|
||||
"23fd57db751b7e919ba72c0c38566ddab808447b74ab582cd80580733c781f65",
|
||||
"i686-unknown-linux-musl-0.4.27":
|
||||
"f21a27146c88107597440d79f3cc9c5d40a049b2e8241f11cdeafd0f74b91d70",
|
||||
"powerpc64-unknown-linux-gnu-0.4.27":
|
||||
"ed16a3983285267abe92309219694cf06f8711d217f9aa609638d756201a442a",
|
||||
"powerpc64le-unknown-linux-gnu-0.4.27":
|
||||
"ec0f343b330d380dca7808be3262d55c5559fdbc09abafcafc9ab2396fb108a3",
|
||||
"powerpc64le-unknown-linux-musl-0.4.27":
|
||||
"7fd1b021b807e255c7742e8a0b0ac6738742a6faedee16229f9cac6a27f3283d",
|
||||
"s390x-unknown-linux-gnu-0.4.27":
|
||||
"d6ec2c48705f0e3eb319cafcd3fe7265f7ad831a4ce9f75ccec2f45f2ee18cda",
|
||||
"x86_64-apple-darwin-0.4.27":
|
||||
"607810910c630333a6dca3e75257bc69ccaf0531febde41c00c7e7ac2b173d3d",
|
||||
"x86_64-pc-windows-msvc-0.4.27":
|
||||
"6ad21f2d42ff61740666133de00b6195bcb806780d08d7734d1ba1adad940700",
|
||||
"x86_64-unknown-linux-gnu-0.4.27":
|
||||
"5565ad9d050a08fef2951d28aef1372ccfe39ccd41dec6fea13167589baae087",
|
||||
"x86_64-unknown-linux-musl-0.4.27":
|
||||
"6b8233d4890b28575f3636f974d906089b9c4a6e9903ddfea257a2f16f3ca28a",
|
||||
"undefined-0.4.26":
|
||||
"5b36575a355193cb3dd3461e477ad7bfddf12d67d941f805caa4aaff52157491",
|
||||
"aarch64-apple-darwin-0.4.26":
|
||||
|
||||
@@ -2,6 +2,7 @@ import * as core from "@actions/core";
|
||||
import * as tc from "@actions/tool-cache";
|
||||
import * as exec from "@actions/exec";
|
||||
import * as path from "node:path";
|
||||
import { promises as fs } from "node:fs";
|
||||
import type { Architecture, Platform } from "../utils/platforms";
|
||||
import { validateChecksum } from "./checksum/checksum";
|
||||
import { OWNER, REPO, TOOL_CACHE_NAME } from "../utils/constants";
|
||||
@@ -13,17 +14,16 @@ export async function downloadLatest(
|
||||
githubToken: string | undefined,
|
||||
): Promise<{ cachedToolDir: string; version: string }> {
|
||||
const artifact = `uv-${arch}-${platform}`;
|
||||
let downloadUrl = `https://github.com/${OWNER}/${REPO}/releases/latest/download/${artifact}`;
|
||||
let extension = ".tar.gz";
|
||||
if (platform === "pc-windows-msvc") {
|
||||
downloadUrl += ".zip";
|
||||
} else {
|
||||
downloadUrl += ".tar.gz";
|
||||
extension = ".zip";
|
||||
}
|
||||
const downloadUrl = `https://github.com/${OWNER}/${REPO}/releases/latest/download/${artifact}${extension}`;
|
||||
core.info(`Downloading uv from "${downloadUrl}" ...`);
|
||||
|
||||
const downloadPath = await tc.downloadTool(
|
||||
downloadUrl,
|
||||
undefined,
|
||||
`${artifact}${extension}`,
|
||||
githubToken,
|
||||
);
|
||||
let uvExecutablePath: string;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import * as core from "@actions/core";
|
||||
import * as tc from "@actions/tool-cache";
|
||||
import * as path from "node:path";
|
||||
import { promises as fs } from "node:fs";
|
||||
import { OWNER, REPO, TOOL_CACHE_NAME } from "../utils/constants";
|
||||
import type { Architecture, Platform } from "../utils/platforms";
|
||||
import { validateChecksum } from "./checksum/checksum";
|
||||
@@ -30,17 +31,16 @@ export async function downloadVersion(
|
||||
): Promise<{ version: string; cachedToolDir: string }> {
|
||||
const resolvedVersion = await resolveVersion(version, githubToken);
|
||||
const artifact = `uv-${arch}-${platform}`;
|
||||
let downloadUrl = `https://github.com/${OWNER}/${REPO}/releases/download/${resolvedVersion}/${artifact}`;
|
||||
let extension = ".tar.gz";
|
||||
if (platform === "pc-windows-msvc") {
|
||||
downloadUrl += ".zip";
|
||||
} else {
|
||||
downloadUrl += ".tar.gz";
|
||||
extension = ".zip";
|
||||
}
|
||||
const downloadUrl = `https://github.com/${OWNER}/${REPO}/releases/download/${resolvedVersion}/${artifact}${extension}`;
|
||||
core.info(`Downloading uv from "${downloadUrl}" ...`);
|
||||
|
||||
const downloadPath = await tc.downloadTool(
|
||||
downloadUrl,
|
||||
undefined,
|
||||
`${artifact}${extension}`,
|
||||
githubToken,
|
||||
);
|
||||
await validateChecksum(
|
||||
|
||||
Reference in New Issue
Block a user