@@ -11495,7 +11495,11 @@ function copyFile(srcFile, destFile, force) {
11495
11495
11496
11496
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11497
11497
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);
11499
11503
}) : (function(o, m, k, k2) {
11500
11504
if (k2 === undefined) k2 = k;
11501
11505
o[k2] = m[k];
@@ -11508,7 +11512,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
11508
11512
var __importStar = (this && this.__importStar) || function (mod) {
11509
11513
if (mod && mod.__esModule) return mod;
11510
11514
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);
11512
11516
__setModuleDefault(result, mod);
11513
11517
return result;
11514
11518
};
@@ -11538,11 +11542,11 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
11538
11542
let file;
11539
11543
for (const candidate of candidates) {
11540
11544
const version = candidate.version;
11541
- core_1.debug(`check ${version} satisfies ${versionSpec}`);
11545
+ (0, core_1.debug) (`check ${version} satisfies ${versionSpec}`);
11542
11546
if (semver.satisfies(version, versionSpec) &&
11543
11547
(!stable || candidate.stable === stable)) {
11544
11548
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}`);
11546
11550
let chk = item.arch === archFilter && item.platform === platFilter;
11547
11551
if (chk && item.platform_version) {
11548
11552
const osVersion = module.exports._getOsVersion();
@@ -11556,7 +11560,7 @@ function _findMatch(versionSpec, stable, candidates, archFilter) {
11556
11560
return chk;
11557
11561
});
11558
11562
if (file) {
11559
- core_1.debug(`matched ${candidate.version}`);
11563
+ (0, core_1.debug) (`matched ${candidate.version}`);
11560
11564
match = candidate;
11561
11565
break;
11562
11566
}
@@ -11594,10 +11598,7 @@ function _getOsVersion() {
11594
11598
if (parts.length === 2 &&
11595
11599
(parts[0].trim() === 'VERSION_ID' ||
11596
11600
parts[0].trim() === 'DISTRIB_RELEASE')) {
11597
- version = parts[1]
11598
- .trim()
11599
- .replace(/^"/, '')
11600
- .replace(/"$/, '');
11601
+ version = parts[1].trim().replace(/^"/, '').replace(/"$/, '');
11601
11602
break;
11602
11603
}
11603
11604
}
@@ -11630,7 +11631,11 @@ exports._readLinuxVersionFile = _readLinuxVersionFile;
11630
11631
11631
11632
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11632
11633
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);
11634
11639
}) : (function(o, m, k, k2) {
11635
11640
if (k2 === undefined) k2 = k;
11636
11641
o[k2] = m[k];
@@ -11643,7 +11648,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
11643
11648
var __importStar = (this && this.__importStar) || function (mod) {
11644
11649
if (mod && mod.__esModule) return mod;
11645
11650
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);
11647
11652
__setModuleDefault(result, mod);
11648
11653
return result;
11649
11654
};
@@ -11720,7 +11725,11 @@ exports.RetryHelper = RetryHelper;
11720
11725
11721
11726
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11722
11727
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);
11724
11733
}) : (function(o, m, k, k2) {
11725
11734
if (k2 === undefined) k2 = k;
11726
11735
o[k2] = m[k];
@@ -11733,7 +11742,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
11733
11742
var __importStar = (this && this.__importStar) || function (mod) {
11734
11743
if (mod && mod.__esModule) return mod;
11735
11744
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);
11737
11746
__setModuleDefault(result, mod);
11738
11747
return result;
11739
11748
};
@@ -11746,13 +11755,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11746
11755
step((generator = generator.apply(thisArg, _arguments || [])).next());
11747
11756
});
11748
11757
};
11749
- var __importDefault = (this && this.__importDefault) || function (mod) {
11750
- return (mod && mod.__esModule) ? mod : { "default": mod };
11751
- };
11752
11758
Object.defineProperty(exports, "__esModule", ({ value: true }));
11753
11759
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;
11754
11760
const core = __importStar(__nccwpck_require__(2186));
11755
11761
const io = __importStar(__nccwpck_require__(7436));
11762
+ const crypto = __importStar(__nccwpck_require__(6113));
11756
11763
const fs = __importStar(__nccwpck_require__(7147));
11757
11764
const mm = __importStar(__nccwpck_require__(2473));
11758
11765
const os = __importStar(__nccwpck_require__(2037));
@@ -11762,7 +11769,6 @@ const semver = __importStar(__nccwpck_require__(562));
11762
11769
const stream = __importStar(__nccwpck_require__(2781));
11763
11770
const util = __importStar(__nccwpck_require__(3837));
11764
11771
const assert_1 = __nccwpck_require__(9491);
11765
- const v4_1 = __importDefault(__nccwpck_require__(7468));
11766
11772
const exec_1 = __nccwpck_require__(1514);
11767
11773
const retry_helper_1 = __nccwpck_require__(8279);
11768
11774
class HTTPError extends Error {
@@ -11787,7 +11793,7 @@ const userAgent = 'actions/tool-cache';
11787
11793
*/
11788
11794
function downloadTool(url, dest, auth, headers) {
11789
11795
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 ());
11791
11797
yield io.mkdirP(path.dirname(dest));
11792
11798
core.debug(`Downloading ${url}`);
11793
11799
core.debug(`Destination ${dest}`);
@@ -11876,8 +11882,8 @@ function downloadToolAttempt(url, dest, auth, headers) {
11876
11882
*/
11877
11883
function extract7z(file, dest, _7zPath) {
11878
11884
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');
11881
11887
dest = yield _createExtractFolder(dest);
11882
11888
const originalCwd = process.cwd();
11883
11889
process.chdir(dest);
@@ -11894,7 +11900,7 @@ function extract7z(file, dest, _7zPath) {
11894
11900
const options = {
11895
11901
silent: true
11896
11902
};
11897
- yield exec_1.exec(`"${_7zPath}"`, args, options);
11903
+ yield (0, exec_1.exec) (`"${_7zPath}"`, args, options);
11898
11904
}
11899
11905
finally {
11900
11906
process.chdir(originalCwd);
@@ -11923,7 +11929,7 @@ function extract7z(file, dest, _7zPath) {
11923
11929
};
11924
11930
try {
11925
11931
const powershellPath = yield io.which('powershell', true);
11926
- yield exec_1.exec(`"${powershellPath}"`, args, options);
11932
+ yield (0, exec_1.exec) (`"${powershellPath}"`, args, options);
11927
11933
}
11928
11934
finally {
11929
11935
process.chdir(originalCwd);
@@ -11951,7 +11957,7 @@ function extractTar(file, dest, flags = 'xz') {
11951
11957
// Determine whether GNU tar
11952
11958
core.debug('Checking tar --version');
11953
11959
let versionOutput = '';
11954
- yield exec_1.exec('tar --version', [], {
11960
+ yield (0, exec_1.exec) ('tar --version', [], {
11955
11961
ignoreReturnCode: true,
11956
11962
silent: true,
11957
11963
listeners: {
@@ -11987,7 +11993,7 @@ function extractTar(file, dest, flags = 'xz') {
11987
11993
args.push('--overwrite');
11988
11994
}
11989
11995
args.push('-C', destArg, '-f', fileArg);
11990
- yield exec_1.exec(`tar`, args);
11996
+ yield (0, exec_1.exec) (`tar`, args);
11991
11997
return dest;
11992
11998
});
11993
11999
}
@@ -12002,8 +12008,8 @@ exports.extractTar = extractTar;
12002
12008
*/
12003
12009
function extractXar(file, dest, flags = []) {
12004
12010
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');
12007
12013
dest = yield _createExtractFolder(dest);
12008
12014
let args;
12009
12015
if (flags instanceof Array) {
@@ -12017,7 +12023,7 @@ function extractXar(file, dest, flags = []) {
12017
12023
args.push('-v');
12018
12024
}
12019
12025
const xarPath = yield io.which('xar', true);
12020
- yield exec_1.exec(`"${xarPath}"`, _unique(args));
12026
+ yield (0, exec_1.exec) (`"${xarPath}"`, _unique(args));
12021
12027
return dest;
12022
12028
});
12023
12029
}
@@ -12071,7 +12077,7 @@ function extractZipWin(file, dest) {
12071
12077
pwshCommand
12072
12078
];
12073
12079
core.debug(`Using pwsh at path: ${pwshPath}`);
12074
- yield exec_1.exec(`"${pwshPath}"`, args);
12080
+ yield (0, exec_1.exec) (`"${pwshPath}"`, args);
12075
12081
}
12076
12082
else {
12077
12083
const powershellCommand = [
@@ -12092,7 +12098,7 @@ function extractZipWin(file, dest) {
12092
12098
];
12093
12099
const powershellPath = yield io.which('powershell', true);
12094
12100
core.debug(`Using powershell at path: ${powershellPath}`);
12095
- yield exec_1.exec(`"${powershellPath}"`, args);
12101
+ yield (0, exec_1.exec) (`"${powershellPath}"`, args);
12096
12102
}
12097
12103
});
12098
12104
}
@@ -12104,7 +12110,7 @@ function extractZipNix(file, dest) {
12104
12110
args.unshift('-q');
12105
12111
}
12106
12112
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 });
12108
12114
});
12109
12115
}
12110
12116
/**
@@ -12281,7 +12287,7 @@ function _createExtractFolder(dest) {
12281
12287
return __awaiter(this, void 0, void 0, function* () {
12282
12288
if (!dest) {
12283
12289
// create a temp dir
12284
- dest = path.join(_getTempDirectory(), v4_1.default ());
12290
+ dest = path.join(_getTempDirectory(), crypto.randomUUID ());
12285
12291
}
12286
12292
yield io.mkdirP(dest);
12287
12293
return dest;
@@ -12354,15 +12360,15 @@ exports.evaluateVersions = evaluateVersions;
12354
12360
*/
12355
12361
function _getCacheDirectory() {
12356
12362
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');
12358
12364
return cacheDirectory;
12359
12365
}
12360
12366
/**
12361
12367
* Gets RUNNER_TEMP
12362
12368
*/
12363
12369
function _getTempDirectory() {
12364
12370
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');
12366
12372
return tempDirectory;
12367
12373
}
12368
12374
/**
@@ -14033,90 +14039,6 @@ function coerce (version, options) {
14033
14039
}
14034
14040
14035
14041
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
-
14120
14042
/***/ }),
14121
14043
14122
14044
/***/ 2557:
0 commit comments