Skip to content

Commit dd38239

Browse files
committedFeb 17, 2025
check failures fix
1 parent 2c1e206 commit dd38239

File tree

1 file changed

+39
-117
lines changed

1 file changed

+39
-117
lines changed
 

‎dist/setup/index.js

+39-117
Original file line numberDiff line numberDiff line change
@@ -11495,7 +11495,11 @@ function copyFile(srcFile, destFile, force) {
1149511495

1149611496
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1149711497
if (k2 === undefined) k2 = k;
11498-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
11498+
var desc = Object.getOwnPropertyDescriptor(m, k);
11499+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11500+
desc = { enumerable: true, get: function() { return m[k]; } };
11501+
}
11502+
Object.defineProperty(o, k2, desc);
1149911503
}) : (function(o, m, k, k2) {
1150011504
if (k2 === undefined) k2 = k;
1150111505
o[k2] = m[k];
@@ -11508,7 +11512,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
1150811512
var __importStar = (this && this.__importStar) || function (mod) {
1150911513
if (mod && mod.__esModule) return mod;
1151011514
var result = {};
11511-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
11515+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1151211516
__setModuleDefault(result, mod);
1151311517
return result;
1151411518
};
@@ -11538,11 +11542,11 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
1153811542
let file;
1153911543
for (const candidate of candidates) {
1154011544
const version = candidate.version;
11541-
core_1.debug(`check ${version} satisfies ${versionSpec}`);
11545+
(0, core_1.debug)(`check ${version} satisfies ${versionSpec}`);
1154211546
if (semver.satisfies(version, versionSpec) &&
1154311547
(!stable || candidate.stable === stable)) {
1154411548
file = candidate.files.find(item => {
11545-
core_1.debug(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
11549+
(0, core_1.debug)(`${item.arch}===${archFilter} && ${item.platform}===${platFilter}`);
1154611550
let chk = item.arch === archFilter && item.platform === platFilter;
1154711551
if (chk && item.platform_version) {
1154811552
const osVersion = module.exports._getOsVersion();
@@ -11556,7 +11560,7 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
1155611560
return chk;
1155711561
});
1155811562
if (file) {
11559-
core_1.debug(`matched ${candidate.version}`);
11563+
(0, core_1.debug)(`matched ${candidate.version}`);
1156011564
match = candidate;
1156111565
break;
1156211566
}
@@ -11594,10 +11598,7 @@ function _getOsVersion() {
1159411598
if (parts.length === 2 &&
1159511599
(parts[0].trim() === 'VERSION_ID' ||
1159611600
parts[0].trim() === 'DISTRIB_RELEASE')) {
11597-
version = parts[1]
11598-
.trim()
11599-
.replace(/^"/, '')
11600-
.replace(/"$/, '');
11601+
version = parts[1].trim().replace(/^"/, '').replace(/"$/, '');
1160111602
break;
1160211603
}
1160311604
}
@@ -11630,7 +11631,11 @@ exports._readLinuxVersionFile = _readLinuxVersionFile;
1163011631

1163111632
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1163211633
if (k2 === undefined) k2 = k;
11633-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
11634+
var desc = Object.getOwnPropertyDescriptor(m, k);
11635+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11636+
desc = { enumerable: true, get: function() { return m[k]; } };
11637+
}
11638+
Object.defineProperty(o, k2, desc);
1163411639
}) : (function(o, m, k, k2) {
1163511640
if (k2 === undefined) k2 = k;
1163611641
o[k2] = m[k];
@@ -11643,7 +11648,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
1164311648
var __importStar = (this && this.__importStar) || function (mod) {
1164411649
if (mod && mod.__esModule) return mod;
1164511650
var result = {};
11646-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
11651+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1164711652
__setModuleDefault(result, mod);
1164811653
return result;
1164911654
};
@@ -11720,7 +11725,11 @@ exports.RetryHelper = RetryHelper;
1172011725

1172111726
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1172211727
if (k2 === undefined) k2 = k;
11723-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
11728+
var desc = Object.getOwnPropertyDescriptor(m, k);
11729+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11730+
desc = { enumerable: true, get: function() { return m[k]; } };
11731+
}
11732+
Object.defineProperty(o, k2, desc);
1172411733
}) : (function(o, m, k, k2) {
1172511734
if (k2 === undefined) k2 = k;
1172611735
o[k2] = m[k];
@@ -11733,7 +11742,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
1173311742
var __importStar = (this && this.__importStar) || function (mod) {
1173411743
if (mod && mod.__esModule) return mod;
1173511744
var result = {};
11736-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
11745+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1173711746
__setModuleDefault(result, mod);
1173811747
return result;
1173911748
};
@@ -11746,13 +11755,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
1174611755
step((generator = generator.apply(thisArg, _arguments || [])).next());
1174711756
});
1174811757
};
11749-
var __importDefault = (this && this.__importDefault) || function (mod) {
11750-
return (mod && mod.__esModule) ? mod : { "default": mod };
11751-
};
1175211758
Object.defineProperty(exports, "__esModule", ({ value: true }));
1175311759
exports.evaluateVersions = exports.isExplicitVersion = exports.findFromManifest = exports.getManifestFromRepo = exports.findAllVersions = exports.find = exports.cacheFile = exports.cacheDir = exports.extractZip = exports.extractXar = exports.extractTar = exports.extract7z = exports.downloadTool = exports.HTTPError = void 0;
1175411760
const core = __importStar(__nccwpck_require__(2186));
1175511761
const io = __importStar(__nccwpck_require__(7436));
11762+
const crypto = __importStar(__nccwpck_require__(6113));
1175611763
const fs = __importStar(__nccwpck_require__(7147));
1175711764
const mm = __importStar(__nccwpck_require__(2473));
1175811765
const os = __importStar(__nccwpck_require__(2037));
@@ -11762,7 +11769,6 @@ const semver = __importStar(__nccwpck_require__(562));
1176211769
const stream = __importStar(__nccwpck_require__(2781));
1176311770
const util = __importStar(__nccwpck_require__(3837));
1176411771
const assert_1 = __nccwpck_require__(9491);
11765-
const v4_1 = __importDefault(__nccwpck_require__(7468));
1176611772
const exec_1 = __nccwpck_require__(1514);
1176711773
const retry_helper_1 = __nccwpck_require__(8279);
1176811774
class HTTPError extends Error {
@@ -11787,7 +11793,7 @@ const userAgent = 'actions/tool-cache';
1178711793
*/
1178811794
function downloadTool(url, dest, auth, headers) {
1178911795
return __awaiter(this, void 0, void 0, function* () {
11790-
dest = dest || path.join(_getTempDirectory(), v4_1.default());
11796+
dest = dest || path.join(_getTempDirectory(), crypto.randomUUID());
1179111797
yield io.mkdirP(path.dirname(dest));
1179211798
core.debug(`Downloading ${url}`);
1179311799
core.debug(`Destination ${dest}`);
@@ -11876,8 +11882,8 @@ function downloadToolAttempt(url, dest, auth, headers) {
1187611882
*/
1187711883
function extract7z(file, dest, _7zPath) {
1187811884
return __awaiter(this, void 0, void 0, function* () {
11879-
assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS');
11880-
assert_1.ok(file, 'parameter "file" is required');
11885+
(0, assert_1.ok)(IS_WINDOWS, 'extract7z() not supported on current OS');
11886+
(0, assert_1.ok)(file, 'parameter "file" is required');
1188111887
dest = yield _createExtractFolder(dest);
1188211888
const originalCwd = process.cwd();
1188311889
process.chdir(dest);
@@ -11894,7 +11900,7 @@ function extract7z(file, dest, _7zPath) {
1189411900
const options = {
1189511901
silent: true
1189611902
};
11897-
yield exec_1.exec(`"${_7zPath}"`, args, options);
11903+
yield (0, exec_1.exec)(`"${_7zPath}"`, args, options);
1189811904
}
1189911905
finally {
1190011906
process.chdir(originalCwd);
@@ -11923,7 +11929,7 @@ function extract7z(file, dest, _7zPath) {
1192311929
};
1192411930
try {
1192511931
const powershellPath = yield io.which('powershell', true);
11926-
yield exec_1.exec(`"${powershellPath}"`, args, options);
11932+
yield (0, exec_1.exec)(`"${powershellPath}"`, args, options);
1192711933
}
1192811934
finally {
1192911935
process.chdir(originalCwd);
@@ -11951,7 +11957,7 @@ function extractTar(file, dest, flags = 'xz') {
1195111957
// Determine whether GNU tar
1195211958
core.debug('Checking tar --version');
1195311959
let versionOutput = '';
11954-
yield exec_1.exec('tar --version', [], {
11960+
yield (0, exec_1.exec)('tar --version', [], {
1195511961
ignoreReturnCode: true,
1195611962
silent: true,
1195711963
listeners: {
@@ -11987,7 +11993,7 @@ function extractTar(file, dest, flags = 'xz') {
1198711993
args.push('--overwrite');
1198811994
}
1198911995
args.push('-C', destArg, '-f', fileArg);
11990-
yield exec_1.exec(`tar`, args);
11996+
yield (0, exec_1.exec)(`tar`, args);
1199111997
return dest;
1199211998
});
1199311999
}
@@ -12002,8 +12008,8 @@ exports.extractTar = extractTar;
1200212008
*/
1200312009
function extractXar(file, dest, flags = []) {
1200412010
return __awaiter(this, void 0, void 0, function* () {
12005-
assert_1.ok(IS_MAC, 'extractXar() not supported on current OS');
12006-
assert_1.ok(file, 'parameter "file" is required');
12011+
(0, assert_1.ok)(IS_MAC, 'extractXar() not supported on current OS');
12012+
(0, assert_1.ok)(file, 'parameter "file" is required');
1200712013
dest = yield _createExtractFolder(dest);
1200812014
let args;
1200912015
if (flags instanceof Array) {
@@ -12017,7 +12023,7 @@ function extractXar(file, dest, flags = []) {
1201712023
args.push('-v');
1201812024
}
1201912025
const xarPath = yield io.which('xar', true);
12020-
yield exec_1.exec(`"${xarPath}"`, _unique(args));
12026+
yield (0, exec_1.exec)(`"${xarPath}"`, _unique(args));
1202112027
return dest;
1202212028
});
1202312029
}
@@ -12071,7 +12077,7 @@ function extractZipWin(file, dest) {
1207112077
pwshCommand
1207212078
];
1207312079
core.debug(`Using pwsh at path: ${pwshPath}`);
12074-
yield exec_1.exec(`"${pwshPath}"`, args);
12080+
yield (0, exec_1.exec)(`"${pwshPath}"`, args);
1207512081
}
1207612082
else {
1207712083
const powershellCommand = [
@@ -12092,7 +12098,7 @@ function extractZipWin(file, dest) {
1209212098
];
1209312099
const powershellPath = yield io.which('powershell', true);
1209412100
core.debug(`Using powershell at path: ${powershellPath}`);
12095-
yield exec_1.exec(`"${powershellPath}"`, args);
12101+
yield (0, exec_1.exec)(`"${powershellPath}"`, args);
1209612102
}
1209712103
});
1209812104
}
@@ -12104,7 +12110,7 @@ function extractZipNix(file, dest) {
1210412110
args.unshift('-q');
1210512111
}
1210612112
args.unshift('-o'); //overwrite with -o, otherwise a prompt is shown which freezes the run
12107-
yield exec_1.exec(`"${unzipPath}"`, args, { cwd: dest });
12113+
yield (0, exec_1.exec)(`"${unzipPath}"`, args, { cwd: dest });
1210812114
});
1210912115
}
1211012116
/**
@@ -12281,7 +12287,7 @@ function _createExtractFolder(dest) {
1228112287
return __awaiter(this, void 0, void 0, function* () {
1228212288
if (!dest) {
1228312289
// create a temp dir
12284-
dest = path.join(_getTempDirectory(), v4_1.default());
12290+
dest = path.join(_getTempDirectory(), crypto.randomUUID());
1228512291
}
1228612292
yield io.mkdirP(dest);
1228712293
return dest;
@@ -12354,15 +12360,15 @@ exports.evaluateVersions = evaluateVersions;
1235412360
*/
1235512361
function _getCacheDirectory() {
1235612362
const cacheDirectory = process.env['RUNNER_TOOL_CACHE'] || '';
12357-
assert_1.ok(cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined');
12363+
(0, assert_1.ok)(cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined');
1235812364
return cacheDirectory;
1235912365
}
1236012366
/**
1236112367
* Gets RUNNER_TEMP
1236212368
*/
1236312369
function _getTempDirectory() {
1236412370
const tempDirectory = process.env['RUNNER_TEMP'] || '';
12365-
assert_1.ok(tempDirectory, 'Expected RUNNER_TEMP to be defined');
12371+
(0, assert_1.ok)(tempDirectory, 'Expected RUNNER_TEMP to be defined');
1236612372
return tempDirectory;
1236712373
}
1236812374
/**
@@ -14033,90 +14039,6 @@ function coerce (version, options) {
1403314039
}
1403414040

1403514041

14036-
/***/ }),
14037-
14038-
/***/ 7701:
14039-
/***/ ((module) => {
14040-
14041-
/**
14042-
* Convert array of 16 byte values to UUID string format of the form:
14043-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
14044-
*/
14045-
var byteToHex = [];
14046-
for (var i = 0; i < 256; ++i) {
14047-
byteToHex[i] = (i + 0x100).toString(16).substr(1);
14048-
}
14049-
14050-
function bytesToUuid(buf, offset) {
14051-
var i = offset || 0;
14052-
var bth = byteToHex;
14053-
// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
14054-
return ([
14055-
bth[buf[i++]], bth[buf[i++]],
14056-
bth[buf[i++]], bth[buf[i++]], '-',
14057-
bth[buf[i++]], bth[buf[i++]], '-',
14058-
bth[buf[i++]], bth[buf[i++]], '-',
14059-
bth[buf[i++]], bth[buf[i++]], '-',
14060-
bth[buf[i++]], bth[buf[i++]],
14061-
bth[buf[i++]], bth[buf[i++]],
14062-
bth[buf[i++]], bth[buf[i++]]
14063-
]).join('');
14064-
}
14065-
14066-
module.exports = bytesToUuid;
14067-
14068-
14069-
/***/ }),
14070-
14071-
/***/ 7269:
14072-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
14073-
14074-
// Unique ID creation requires a high quality random # generator. In node.js
14075-
// this is pretty straight-forward - we use the crypto API.
14076-
14077-
var crypto = __nccwpck_require__(6113);
14078-
14079-
module.exports = function nodeRNG() {
14080-
return crypto.randomBytes(16);
14081-
};
14082-
14083-
14084-
/***/ }),
14085-
14086-
/***/ 7468:
14087-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
14088-
14089-
var rng = __nccwpck_require__(7269);
14090-
var bytesToUuid = __nccwpck_require__(7701);
14091-
14092-
function v4(options, buf, offset) {
14093-
var i = buf && offset || 0;
14094-
14095-
if (typeof(options) == 'string') {
14096-
buf = options === 'binary' ? new Array(16) : null;
14097-
options = null;
14098-
}
14099-
options = options || {};
14100-
14101-
var rnds = options.random || (options.rng || rng)();
14102-
14103-
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
14104-
rnds[6] = (rnds[6] & 0x0f) | 0x40;
14105-
rnds[8] = (rnds[8] & 0x3f) | 0x80;
14106-
14107-
// Copy bytes to buffer, if provided
14108-
if (buf) {
14109-
for (var ii = 0; ii < 16; ++ii) {
14110-
buf[i + ii] = rnds[ii];
14111-
}
14112-
}
14113-
14114-
return buf || bytesToUuid(rnds);
14115-
}
14116-
14117-
module.exports = v4;
14118-
14119-
1412014042
/***/ }),
1412114043

1412214044
/***/ 2557:

0 commit comments

Comments
 (0)
Failed to load comments.