From 11c722078b4ec73418360994f5fe618846957089 Mon Sep 17 00:00:00 2001 From: Musaed Albrikan Date: Mon, 10 Jun 2024 15:07:13 +0300 Subject: [PATCH] Use pnpm instead of npm to build --- dist/index.js | 540 +++++++++++++++++++++++----------------------- dist/index.js.map | 2 +- 2 files changed, 271 insertions(+), 271 deletions(-) diff --git a/dist/index.js b/dist/index.js index 6342f84..54ec34c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -42,11 +42,11 @@ if (parcelRequire == null) { } var parcelRegister = parcelRequire.register; -parcelRegister("02a0L", function(module, exports) { -module.exports = $0067f4153754ec94$var$isexe; -$0067f4153754ec94$var$isexe.sync = $0067f4153754ec94$var$sync; +parcelRegister("dE8Bn", function(module, exports) { +module.exports = $9ef5aef4681a6fb1$var$isexe; +$9ef5aef4681a6fb1$var$isexe.sync = $9ef5aef4681a6fb1$var$sync; -function $0067f4153754ec94$var$checkPathExt(path, options) { +function $9ef5aef4681a6fb1$var$checkPathExt(path, options) { var pathext = options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT; if (!pathext) return true; pathext = pathext.split(";"); @@ -57,37 +57,37 @@ function $0067f4153754ec94$var$checkPathExt(path, options) { } return false; } -function $0067f4153754ec94$var$checkStat(stat, path, options) { +function $9ef5aef4681a6fb1$var$checkStat(stat, path, options) { if (!stat.isSymbolicLink() && !stat.isFile()) return false; - return $0067f4153754ec94$var$checkPathExt(path, options); + return $9ef5aef4681a6fb1$var$checkPathExt(path, options); } -function $0067f4153754ec94$var$isexe(path, options, cb) { +function $9ef5aef4681a6fb1$var$isexe(path, options, cb) { $evV72$stat(path, function(er, stat) { - cb(er, er ? false : $0067f4153754ec94$var$checkStat(stat, path, options)); + cb(er, er ? false : $9ef5aef4681a6fb1$var$checkStat(stat, path, options)); }); } -function $0067f4153754ec94$var$sync(path, options) { - return $0067f4153754ec94$var$checkStat($evV72$statSync(path), path, options); +function $9ef5aef4681a6fb1$var$sync(path, options) { + return $9ef5aef4681a6fb1$var$checkStat($evV72$statSync(path), path, options); } }); -parcelRegister("eqVNx", function(module, exports) { -module.exports = $a82053d9edaeac9b$var$isexe; -$a82053d9edaeac9b$var$isexe.sync = $a82053d9edaeac9b$var$sync; +parcelRegister("5dXTc", function(module, exports) { +module.exports = $3cdc9f651a760b03$var$isexe; +$3cdc9f651a760b03$var$isexe.sync = $3cdc9f651a760b03$var$sync; -function $a82053d9edaeac9b$var$isexe(path, options, cb) { +function $3cdc9f651a760b03$var$isexe(path, options, cb) { $evV72$stat(path, function(er, stat) { - cb(er, er ? false : $a82053d9edaeac9b$var$checkStat(stat, options)); + cb(er, er ? false : $3cdc9f651a760b03$var$checkStat(stat, options)); }); } -function $a82053d9edaeac9b$var$sync(path, options) { - return $a82053d9edaeac9b$var$checkStat($evV72$statSync(path), options); +function $3cdc9f651a760b03$var$sync(path, options) { + return $3cdc9f651a760b03$var$checkStat($evV72$statSync(path), options); } -function $a82053d9edaeac9b$var$checkStat(stat, options) { - return stat.isFile() && $a82053d9edaeac9b$var$checkMode(stat, options); +function $3cdc9f651a760b03$var$checkStat(stat, options) { + return stat.isFile() && $3cdc9f651a760b03$var$checkMode(stat, options); } -function $a82053d9edaeac9b$var$checkMode(stat, options) { +function $3cdc9f651a760b03$var$checkMode(stat, options) { var mod = stat.mode; var uid = stat.uid; var gid = stat.gid; @@ -107,19 +107,19 @@ function $a82053d9edaeac9b$var$checkMode(stat, options) { -function $83fd64f7195557f0$var$toArr(any) { +function $ec42a3295e12ea98$var$toArr(any) { return any == null ? [] : Array.isArray(any) ? any : [ any ]; } -function $83fd64f7195557f0$var$toVal(out, key, val, opts) { +function $ec42a3295e12ea98$var$toVal(out, key, val, opts) { var x, old = out[key], nxt = !!~opts.string.indexOf(key) ? val == null || val === true ? "" : String(val) : typeof val === "boolean" ? val : !!~opts.boolean.indexOf(key) ? val === "false" ? false : val === "true" || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val) : (x = +val, x * 0 === 0) ? x : val; out[key] = old == null ? nxt : Array.isArray(old) ? old.concat(nxt) : [ old, nxt ]; } -function $83fd64f7195557f0$export$2e2bcd8739ae039(args, opts) { +function $ec42a3295e12ea98$export$2e2bcd8739ae039(args, opts) { args = args || []; opts = opts || {}; var k, arr, arg, name, val, out = { @@ -130,10 +130,10 @@ function $83fd64f7195557f0$export$2e2bcd8739ae039(args, opts) { const strict = opts.unknown !== void 0; const defaults = opts.default !== void 0; opts.alias = opts.alias || {}; - opts.string = $83fd64f7195557f0$var$toArr(opts.string); - opts.boolean = $83fd64f7195557f0$var$toArr(opts.boolean); + opts.string = $ec42a3295e12ea98$var$toArr(opts.string); + opts.boolean = $ec42a3295e12ea98$var$toArr(opts.boolean); if (alibi) for(k in opts.alias){ - arr = opts.alias[k] = $83fd64f7195557f0$var$toArr(opts.alias[k]); + arr = opts.alias[k] = $ec42a3295e12ea98$var$toArr(opts.alias[k]); for(i = 0; i < arr.length; i++)(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1); } for(i = opts.boolean.length; i-- > 0;){ @@ -179,7 +179,7 @@ function $83fd64f7195557f0$export$2e2bcd8739ae039(args, opts) { for(idx = 0; idx < arr.length; idx++){ name = arr[idx]; if (strict && !~keys.indexOf(name)) return opts.unknown("-".repeat(j) + name); - $83fd64f7195557f0$var$toVal(out, name, idx + 1 < arr.length || val, opts); + $ec42a3295e12ea98$var$toVal(out, name, idx + 1 < arr.length || val, opts); } } } @@ -194,9 +194,9 @@ function $83fd64f7195557f0$export$2e2bcd8739ae039(args, opts) { } -var $0bb303b6376d48ba$exports = {}; +var $bbb9dac42384d004$exports = {}; "use strict"; -var $0bb303b6376d48ba$var$__createBinding = $0bb303b6376d48ba$exports && $0bb303b6376d48ba$exports.__createBinding || (Object.create ? function(o, m, k, k2) { +var $bbb9dac42384d004$var$__createBinding = $bbb9dac42384d004$exports && $bbb9dac42384d004$exports.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, @@ -208,7 +208,7 @@ var $0bb303b6376d48ba$var$__createBinding = $0bb303b6376d48ba$exports && $0bb303 if (k2 === undefined) k2 = k; o[k2] = m[k]; }); -var $0bb303b6376d48ba$var$__setModuleDefault = $0bb303b6376d48ba$exports && $0bb303b6376d48ba$exports.__setModuleDefault || (Object.create ? function(o, v) { +var $bbb9dac42384d004$var$__setModuleDefault = $bbb9dac42384d004$exports && $bbb9dac42384d004$exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -216,16 +216,16 @@ var $0bb303b6376d48ba$var$__setModuleDefault = $0bb303b6376d48ba$exports && $0bb } : function(o, v) { o["default"] = v; }); -var $0bb303b6376d48ba$var$__importStar = $0bb303b6376d48ba$exports && $0bb303b6376d48ba$exports.__importStar || function(mod) { +var $bbb9dac42384d004$var$__importStar = $bbb9dac42384d004$exports && $bbb9dac42384d004$exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for(var k in mod)if (k !== "default" && Object.hasOwnProperty.call(mod, k)) $0bb303b6376d48ba$var$__createBinding(result, mod, k); + for(var k in mod)if (k !== "default" && Object.hasOwnProperty.call(mod, k)) $bbb9dac42384d004$var$__createBinding(result, mod, k); } - $0bb303b6376d48ba$var$__setModuleDefault(result, mod); + $bbb9dac42384d004$var$__setModuleDefault(result, mod); return result; }; -var $0bb303b6376d48ba$var$__awaiter = $0bb303b6376d48ba$exports && $0bb303b6376d48ba$exports.__awaiter || function(thisArg, _arguments, P, generator) { +var $bbb9dac42384d004$var$__awaiter = $bbb9dac42384d004$exports && $bbb9dac42384d004$exports.__awaiter || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); @@ -252,13 +252,13 @@ var $0bb303b6376d48ba$var$__awaiter = $0bb303b6376d48ba$exports && $0bb303b6376d step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; -Object.defineProperty($0bb303b6376d48ba$exports, "__esModule", { +Object.defineProperty($bbb9dac42384d004$exports, "__esModule", { value: true }); -$0bb303b6376d48ba$exports.getState = $0bb303b6376d48ba$exports.saveState = $0bb303b6376d48ba$exports.group = $0bb303b6376d48ba$exports.endGroup = $0bb303b6376d48ba$exports.startGroup = $0bb303b6376d48ba$exports.info = $0bb303b6376d48ba$exports.notice = $0bb303b6376d48ba$exports.warning = $0bb303b6376d48ba$exports.error = $0bb303b6376d48ba$exports.debug = $0bb303b6376d48ba$exports.isDebug = $0bb303b6376d48ba$exports.setFailed = $0bb303b6376d48ba$exports.setCommandEcho = $0bb303b6376d48ba$exports.setOutput = $0bb303b6376d48ba$exports.getBooleanInput = $0bb303b6376d48ba$exports.getMultilineInput = $0bb303b6376d48ba$exports.getInput = $0bb303b6376d48ba$exports.addPath = $0bb303b6376d48ba$exports.setSecret = $0bb303b6376d48ba$exports.exportVariable = $0bb303b6376d48ba$exports.ExitCode = void 0; -var $6605380e9069822e$exports = {}; +$bbb9dac42384d004$exports.getState = $bbb9dac42384d004$exports.saveState = $bbb9dac42384d004$exports.group = $bbb9dac42384d004$exports.endGroup = $bbb9dac42384d004$exports.startGroup = $bbb9dac42384d004$exports.info = $bbb9dac42384d004$exports.notice = $bbb9dac42384d004$exports.warning = $bbb9dac42384d004$exports.error = $bbb9dac42384d004$exports.debug = $bbb9dac42384d004$exports.isDebug = $bbb9dac42384d004$exports.setFailed = $bbb9dac42384d004$exports.setCommandEcho = $bbb9dac42384d004$exports.setOutput = $bbb9dac42384d004$exports.getBooleanInput = $bbb9dac42384d004$exports.getMultilineInput = $bbb9dac42384d004$exports.getInput = $bbb9dac42384d004$exports.addPath = $bbb9dac42384d004$exports.setSecret = $bbb9dac42384d004$exports.exportVariable = $bbb9dac42384d004$exports.ExitCode = void 0; +var $6aa988ea1669fe85$exports = {}; "use strict"; -var $6605380e9069822e$var$__createBinding = $6605380e9069822e$exports && $6605380e9069822e$exports.__createBinding || (Object.create ? function(o, m, k, k2) { +var $6aa988ea1669fe85$var$__createBinding = $6aa988ea1669fe85$exports && $6aa988ea1669fe85$exports.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, @@ -270,7 +270,7 @@ var $6605380e9069822e$var$__createBinding = $6605380e9069822e$exports && $660538 if (k2 === undefined) k2 = k; o[k2] = m[k]; }); -var $6605380e9069822e$var$__setModuleDefault = $6605380e9069822e$exports && $6605380e9069822e$exports.__setModuleDefault || (Object.create ? function(o, v) { +var $6aa988ea1669fe85$var$__setModuleDefault = $6aa988ea1669fe85$exports && $6aa988ea1669fe85$exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -278,43 +278,43 @@ var $6605380e9069822e$var$__setModuleDefault = $6605380e9069822e$exports && $660 } : function(o, v) { o["default"] = v; }); -var $6605380e9069822e$var$__importStar = $6605380e9069822e$exports && $6605380e9069822e$exports.__importStar || function(mod) { +var $6aa988ea1669fe85$var$__importStar = $6aa988ea1669fe85$exports && $6aa988ea1669fe85$exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for(var k in mod)if (k !== "default" && Object.hasOwnProperty.call(mod, k)) $6605380e9069822e$var$__createBinding(result, mod, k); + for(var k in mod)if (k !== "default" && Object.hasOwnProperty.call(mod, k)) $6aa988ea1669fe85$var$__createBinding(result, mod, k); } - $6605380e9069822e$var$__setModuleDefault(result, mod); + $6aa988ea1669fe85$var$__setModuleDefault(result, mod); return result; }; -Object.defineProperty($6605380e9069822e$exports, "__esModule", { +Object.defineProperty($6aa988ea1669fe85$exports, "__esModule", { value: true }); -$6605380e9069822e$exports.issue = $6605380e9069822e$exports.issueCommand = void 0; +$6aa988ea1669fe85$exports.issue = $6aa988ea1669fe85$exports.issueCommand = void 0; -const $6605380e9069822e$var$os = $6605380e9069822e$var$__importStar($evV72$os1); -var $25a8cc9396483764$exports = {}; +const $6aa988ea1669fe85$var$os = $6aa988ea1669fe85$var$__importStar($evV72$os1); +var $1f87556d0f647bcd$exports = {}; "use strict"; // We use any as a valid input type -/* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty($25a8cc9396483764$exports, "__esModule", { +/* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty($1f87556d0f647bcd$exports, "__esModule", { value: true }); -$25a8cc9396483764$exports.toCommandProperties = $25a8cc9396483764$exports.toCommandValue = void 0; +$1f87556d0f647bcd$exports.toCommandProperties = $1f87556d0f647bcd$exports.toCommandValue = void 0; /** * Sanitizes an input into a string so it can be passed into issueCommand safely * @param input input to sanitize into a string - */ function $25a8cc9396483764$var$toCommandValue(input) { + */ function $1f87556d0f647bcd$var$toCommandValue(input) { if (input === null || input === undefined) return ""; else if (typeof input === "string" || input instanceof String) return input; return JSON.stringify(input); } -$25a8cc9396483764$exports.toCommandValue = $25a8cc9396483764$var$toCommandValue; +$1f87556d0f647bcd$exports.toCommandValue = $1f87556d0f647bcd$var$toCommandValue; /** * * @param annotationProperties * @returns The command properties to send with the actual annotation command * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646 - */ function $25a8cc9396483764$var$toCommandProperties(annotationProperties) { + */ function $1f87556d0f647bcd$var$toCommandProperties(annotationProperties) { if (!Object.keys(annotationProperties).length) return {}; return { title: annotationProperties.title, @@ -324,7 +324,7 @@ $25a8cc9396483764$exports.toCommandValue = $25a8cc9396483764$var$toCommandValue; endColumn: annotationProperties.endColumn }; } -$25a8cc9396483764$exports.toCommandProperties = $25a8cc9396483764$var$toCommandProperties; +$1f87556d0f647bcd$exports.toCommandProperties = $1f87556d0f647bcd$var$toCommandProperties; /** @@ -336,17 +336,17 @@ $25a8cc9396483764$exports.toCommandProperties = $25a8cc9396483764$var$toCommandP * Examples: * ::warning::This is the message * ::set-env name=MY_VAR::some value - */ function $6605380e9069822e$var$issueCommand(command, properties, message) { - const cmd = new $6605380e9069822e$var$Command(command, properties, message); - process.stdout.write(cmd.toString() + $6605380e9069822e$var$os.EOL); + */ function $6aa988ea1669fe85$var$issueCommand(command, properties, message) { + const cmd = new $6aa988ea1669fe85$var$Command(command, properties, message); + process.stdout.write(cmd.toString() + $6aa988ea1669fe85$var$os.EOL); } -$6605380e9069822e$exports.issueCommand = $6605380e9069822e$var$issueCommand; -function $6605380e9069822e$var$issue(name, message = "") { - $6605380e9069822e$var$issueCommand(name, {}, message); +$6aa988ea1669fe85$exports.issueCommand = $6aa988ea1669fe85$var$issueCommand; +function $6aa988ea1669fe85$var$issue(name, message = "") { + $6aa988ea1669fe85$var$issueCommand(name, {}, message); } -$6605380e9069822e$exports.issue = $6605380e9069822e$var$issue; -const $6605380e9069822e$var$CMD_STRING = "::"; -class $6605380e9069822e$var$Command { +$6aa988ea1669fe85$exports.issue = $6aa988ea1669fe85$var$issue; +const $6aa988ea1669fe85$var$CMD_STRING = "::"; +class $6aa988ea1669fe85$var$Command { constructor(command, properties, message){ if (!command) command = "missing.command"; this.command = command; @@ -354,7 +354,7 @@ class $6605380e9069822e$var$Command { this.message = message; } toString() { - let cmdStr = $6605380e9069822e$var$CMD_STRING + this.command; + let cmdStr = $6aa988ea1669fe85$var$CMD_STRING + this.command; if (this.properties && Object.keys(this.properties).length > 0) { cmdStr += " "; let first = true; @@ -363,26 +363,26 @@ class $6605380e9069822e$var$Command { if (val) { if (first) first = false; else cmdStr += ","; - cmdStr += `${key}=${$6605380e9069822e$var$escapeProperty(val)}`; + cmdStr += `${key}=${$6aa988ea1669fe85$var$escapeProperty(val)}`; } } } - cmdStr += `${$6605380e9069822e$var$CMD_STRING}${$6605380e9069822e$var$escapeData(this.message)}`; + cmdStr += `${$6aa988ea1669fe85$var$CMD_STRING}${$6aa988ea1669fe85$var$escapeData(this.message)}`; return cmdStr; } } -function $6605380e9069822e$var$escapeData(s) { - return $25a8cc9396483764$exports.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); +function $6aa988ea1669fe85$var$escapeData(s) { + return $1f87556d0f647bcd$exports.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A"); } -function $6605380e9069822e$var$escapeProperty(s) { - return $25a8cc9396483764$exports.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); +function $6aa988ea1669fe85$var$escapeProperty(s) { + return $1f87556d0f647bcd$exports.toCommandValue(s).replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").replace(/:/g, "%3A").replace(/,/g, "%2C"); } -var $86b37aa3c11138f6$exports = {}; +var $71d1c579b85cee7b$exports = {}; "use strict"; // For internal use, subject to change. -var $86b37aa3c11138f6$var$__createBinding = $86b37aa3c11138f6$exports && $86b37aa3c11138f6$exports.__createBinding || (Object.create ? function(o, m, k, k2) { +var $71d1c579b85cee7b$var$__createBinding = $71d1c579b85cee7b$exports && $71d1c579b85cee7b$exports.__createBinding || (Object.create ? function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, @@ -394,7 +394,7 @@ var $86b37aa3c11138f6$var$__createBinding = $86b37aa3c11138f6$exports && $86b37a if (k2 === undefined) k2 = k; o[k2] = m[k]; }); -var $86b37aa3c11138f6$var$__setModuleDefault = $86b37aa3c11138f6$exports && $86b37aa3c11138f6$exports.__setModuleDefault || (Object.create ? function(o, v) { +var $71d1c579b85cee7b$var$__setModuleDefault = $71d1c579b85cee7b$exports && $71d1c579b85cee7b$exports.__setModuleDefault || (Object.create ? function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v @@ -402,44 +402,44 @@ var $86b37aa3c11138f6$var$__setModuleDefault = $86b37aa3c11138f6$exports && $86b } : function(o, v) { o["default"] = v; }); -var $86b37aa3c11138f6$var$__importStar = $86b37aa3c11138f6$exports && $86b37aa3c11138f6$exports.__importStar || function(mod) { +var $71d1c579b85cee7b$var$__importStar = $71d1c579b85cee7b$exports && $71d1c579b85cee7b$exports.__importStar || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) { - for(var k in mod)if (k !== "default" && Object.hasOwnProperty.call(mod, k)) $86b37aa3c11138f6$var$__createBinding(result, mod, k); + for(var k in mod)if (k !== "default" && Object.hasOwnProperty.call(mod, k)) $71d1c579b85cee7b$var$__createBinding(result, mod, k); } - $86b37aa3c11138f6$var$__setModuleDefault(result, mod); + $71d1c579b85cee7b$var$__setModuleDefault(result, mod); return result; }; -Object.defineProperty($86b37aa3c11138f6$exports, "__esModule", { +Object.defineProperty($71d1c579b85cee7b$exports, "__esModule", { value: true }); -$86b37aa3c11138f6$exports.issueCommand = void 0; +$71d1c579b85cee7b$exports.issueCommand = void 0; // We use any as a valid input type -/* eslint-disable @typescript-eslint/no-explicit-any */ const $86b37aa3c11138f6$var$fs = $86b37aa3c11138f6$var$__importStar($evV72$fs); +/* eslint-disable @typescript-eslint/no-explicit-any */ const $71d1c579b85cee7b$var$fs = $71d1c579b85cee7b$var$__importStar($evV72$fs); -const $86b37aa3c11138f6$var$os = $86b37aa3c11138f6$var$__importStar($evV72$os1); +const $71d1c579b85cee7b$var$os = $71d1c579b85cee7b$var$__importStar($evV72$os1); -function $86b37aa3c11138f6$var$issueCommand(command, message) { +function $71d1c579b85cee7b$var$issueCommand(command, message) { const filePath = process.env[`GITHUB_${command}`]; if (!filePath) throw new Error(`Unable to find environment variable for file command ${command}`); - if (!$86b37aa3c11138f6$var$fs.existsSync(filePath)) throw new Error(`Missing file at path: ${filePath}`); - $86b37aa3c11138f6$var$fs.appendFileSync(filePath, `${$25a8cc9396483764$exports.toCommandValue(message)}${$86b37aa3c11138f6$var$os.EOL}`, { + if (!$71d1c579b85cee7b$var$fs.existsSync(filePath)) throw new Error(`Missing file at path: ${filePath}`); + $71d1c579b85cee7b$var$fs.appendFileSync(filePath, `${$1f87556d0f647bcd$exports.toCommandValue(message)}${$71d1c579b85cee7b$var$os.EOL}`, { encoding: "utf8" }); } -$86b37aa3c11138f6$exports.issueCommand = $86b37aa3c11138f6$var$issueCommand; +$71d1c579b85cee7b$exports.issueCommand = $71d1c579b85cee7b$var$issueCommand; -const $0bb303b6376d48ba$var$os = $0bb303b6376d48ba$var$__importStar($evV72$os1); +const $bbb9dac42384d004$var$os = $bbb9dac42384d004$var$__importStar($evV72$os1); -const $0bb303b6376d48ba$var$path = $0bb303b6376d48ba$var$__importStar($evV72$path1); +const $bbb9dac42384d004$var$path = $bbb9dac42384d004$var$__importStar($evV72$path1); /** * The code to exit an action - */ var $0bb303b6376d48ba$var$ExitCode; + */ var $bbb9dac42384d004$var$ExitCode; (function(ExitCode) { /** * A code indicating that the action was successful @@ -447,7 +447,7 @@ const $0bb303b6376d48ba$var$path = $0bb303b6376d48ba$var$__importStar($evV72$pat /** * A code indicating that the action was a failure */ ExitCode[ExitCode["Failure"] = 1] = "Failure"; -})($0bb303b6376d48ba$var$ExitCode = $0bb303b6376d48ba$exports.ExitCode || ($0bb303b6376d48ba$exports.ExitCode = {})); +})($bbb9dac42384d004$var$ExitCode = $bbb9dac42384d004$exports.ExitCode || ($bbb9dac42384d004$exports.ExitCode = {})); //----------------------------------------------------------------------- // Variables //----------------------------------------------------------------------- @@ -456,36 +456,36 @@ const $0bb303b6376d48ba$var$path = $0bb303b6376d48ba$var$__importStar($evV72$pat * @param name the name of the variable to set * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify */ // eslint-disable-next-line @typescript-eslint/no-explicit-any -function $0bb303b6376d48ba$var$exportVariable(name, val) { - const convertedVal = $25a8cc9396483764$exports.toCommandValue(val); +function $bbb9dac42384d004$var$exportVariable(name, val) { + const convertedVal = $1f87556d0f647bcd$exports.toCommandValue(val); process.env[name] = convertedVal; const filePath = process.env["GITHUB_ENV"] || ""; if (filePath) { const delimiter = "_GitHubActionsFileCommandDelimeter_"; - const commandValue = `${name}<<${delimiter}${$0bb303b6376d48ba$var$os.EOL}${convertedVal}${$0bb303b6376d48ba$var$os.EOL}${delimiter}`; - $86b37aa3c11138f6$exports.issueCommand("ENV", commandValue); - } else $6605380e9069822e$exports.issueCommand("set-env", { + const commandValue = `${name}<<${delimiter}${$bbb9dac42384d004$var$os.EOL}${convertedVal}${$bbb9dac42384d004$var$os.EOL}${delimiter}`; + $71d1c579b85cee7b$exports.issueCommand("ENV", commandValue); + } else $6aa988ea1669fe85$exports.issueCommand("set-env", { name: name }, convertedVal); } -$0bb303b6376d48ba$exports.exportVariable = $0bb303b6376d48ba$var$exportVariable; +$bbb9dac42384d004$exports.exportVariable = $bbb9dac42384d004$var$exportVariable; /** * Registers a secret which will get masked from logs * @param secret value of the secret - */ function $0bb303b6376d48ba$var$setSecret(secret) { - $6605380e9069822e$exports.issueCommand("add-mask", {}, secret); + */ function $bbb9dac42384d004$var$setSecret(secret) { + $6aa988ea1669fe85$exports.issueCommand("add-mask", {}, secret); } -$0bb303b6376d48ba$exports.setSecret = $0bb303b6376d48ba$var$setSecret; +$bbb9dac42384d004$exports.setSecret = $bbb9dac42384d004$var$setSecret; /** * Prepends inputPath to the PATH (for this action and future actions) * @param inputPath - */ function $0bb303b6376d48ba$var$addPath(inputPath) { + */ function $bbb9dac42384d004$var$addPath(inputPath) { const filePath = process.env["GITHUB_PATH"] || ""; - if (filePath) $86b37aa3c11138f6$exports.issueCommand("PATH", inputPath); - else $6605380e9069822e$exports.issueCommand("add-path", {}, inputPath); - process.env["PATH"] = `${inputPath}${$0bb303b6376d48ba$var$path.delimiter}${process.env["PATH"]}`; + if (filePath) $71d1c579b85cee7b$exports.issueCommand("PATH", inputPath); + else $6aa988ea1669fe85$exports.issueCommand("add-path", {}, inputPath); + process.env["PATH"] = `${inputPath}${$bbb9dac42384d004$var$path.delimiter}${process.env["PATH"]}`; } -$0bb303b6376d48ba$exports.addPath = $0bb303b6376d48ba$var$addPath; +$bbb9dac42384d004$exports.addPath = $bbb9dac42384d004$var$addPath; /** * Gets the value of an input. * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed. @@ -494,13 +494,13 @@ $0bb303b6376d48ba$exports.addPath = $0bb303b6376d48ba$var$addPath; * @param name name of the input to get * @param options optional. See InputOptions. * @returns string - */ function $0bb303b6376d48ba$var$getInput(name, options) { + */ function $bbb9dac42384d004$var$getInput(name, options) { const val = process.env[`INPUT_${name.replace(/ /g, "_").toUpperCase()}`] || ""; if (options && options.required && !val) throw new Error(`Input required and not supplied: ${name}`); if (options && options.trimWhitespace === false) return val; return val.trim(); } -$0bb303b6376d48ba$exports.getInput = $0bb303b6376d48ba$var$getInput; +$bbb9dac42384d004$exports.getInput = $bbb9dac42384d004$var$getInput; /** * Gets the values of an multiline input. Each value is also trimmed. * @@ -508,11 +508,11 @@ $0bb303b6376d48ba$exports.getInput = $0bb303b6376d48ba$var$getInput; * @param options optional. See InputOptions. * @returns string[] * - */ function $0bb303b6376d48ba$var$getMultilineInput(name, options) { - const inputs = $0bb303b6376d48ba$var$getInput(name, options).split("\n").filter((x)=>x !== ""); + */ function $bbb9dac42384d004$var$getMultilineInput(name, options) { + const inputs = $bbb9dac42384d004$var$getInput(name, options).split("\n").filter((x)=>x !== ""); return inputs; } -$0bb303b6376d48ba$exports.getMultilineInput = $0bb303b6376d48ba$var$getMultilineInput; +$bbb9dac42384d004$exports.getMultilineInput = $bbb9dac42384d004$var$getMultilineInput; /** * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. * Support boolean input list: `true | True | TRUE | false | False | FALSE` . @@ -522,7 +522,7 @@ $0bb303b6376d48ba$exports.getMultilineInput = $0bb303b6376d48ba$var$getMultiline * @param name name of the input to get * @param options optional. See InputOptions. * @returns boolean - */ function $0bb303b6376d48ba$var$getBooleanInput(name, options) { + */ function $bbb9dac42384d004$var$getBooleanInput(name, options) { const trueValue = [ "true", "True", @@ -533,33 +533,33 @@ $0bb303b6376d48ba$exports.getMultilineInput = $0bb303b6376d48ba$var$getMultiline "False", "FALSE" ]; - const val = $0bb303b6376d48ba$var$getInput(name, options); + const val = $bbb9dac42384d004$var$getInput(name, options); if (trueValue.includes(val)) return true; if (falseValue.includes(val)) return false; throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` + `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); } -$0bb303b6376d48ba$exports.getBooleanInput = $0bb303b6376d48ba$var$getBooleanInput; +$bbb9dac42384d004$exports.getBooleanInput = $bbb9dac42384d004$var$getBooleanInput; /** * Sets the value of an output. * * @param name name of the output to set * @param value value to store. Non-string values will be converted to a string via JSON.stringify */ // eslint-disable-next-line @typescript-eslint/no-explicit-any -function $0bb303b6376d48ba$var$setOutput(name, value) { - process.stdout.write($0bb303b6376d48ba$var$os.EOL); - $6605380e9069822e$exports.issueCommand("set-output", { +function $bbb9dac42384d004$var$setOutput(name, value) { + process.stdout.write($bbb9dac42384d004$var$os.EOL); + $6aa988ea1669fe85$exports.issueCommand("set-output", { name: name }, value); } -$0bb303b6376d48ba$exports.setOutput = $0bb303b6376d48ba$var$setOutput; +$bbb9dac42384d004$exports.setOutput = $bbb9dac42384d004$var$setOutput; /** * Enables or disables the echoing of commands into stdout for the rest of the step. * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. * - */ function $0bb303b6376d48ba$var$setCommandEcho(enabled) { - $6605380e9069822e$exports.issue("echo", enabled ? "on" : "off"); + */ function $bbb9dac42384d004$var$setCommandEcho(enabled) { + $6aa988ea1669fe85$exports.issue("echo", enabled ? "on" : "off"); } -$0bb303b6376d48ba$exports.setCommandEcho = $0bb303b6376d48ba$var$setCommandEcho; +$bbb9dac42384d004$exports.setCommandEcho = $bbb9dac42384d004$var$setCommandEcho; //----------------------------------------------------------------------- // Results //----------------------------------------------------------------------- @@ -567,74 +567,74 @@ $0bb303b6376d48ba$exports.setCommandEcho = $0bb303b6376d48ba$var$setCommandEcho; * Sets the action status to failed. * When the action exits it will be with an exit code of 1 * @param message add error issue message - */ function $0bb303b6376d48ba$var$setFailed(message) { - process.exitCode = $0bb303b6376d48ba$var$ExitCode.Failure; - $0bb303b6376d48ba$var$error(message); + */ function $bbb9dac42384d004$var$setFailed(message) { + process.exitCode = $bbb9dac42384d004$var$ExitCode.Failure; + $bbb9dac42384d004$var$error(message); } -$0bb303b6376d48ba$exports.setFailed = $0bb303b6376d48ba$var$setFailed; +$bbb9dac42384d004$exports.setFailed = $bbb9dac42384d004$var$setFailed; //----------------------------------------------------------------------- // Logging Commands //----------------------------------------------------------------------- /** * Gets whether Actions Step Debug is on or not - */ function $0bb303b6376d48ba$var$isDebug() { + */ function $bbb9dac42384d004$var$isDebug() { return process.env["RUNNER_DEBUG"] === "1"; } -$0bb303b6376d48ba$exports.isDebug = $0bb303b6376d48ba$var$isDebug; +$bbb9dac42384d004$exports.isDebug = $bbb9dac42384d004$var$isDebug; /** * Writes debug message to user log * @param message debug message - */ function $0bb303b6376d48ba$var$debug(message) { - $6605380e9069822e$exports.issueCommand("debug", {}, message); + */ function $bbb9dac42384d004$var$debug(message) { + $6aa988ea1669fe85$exports.issueCommand("debug", {}, message); } -$0bb303b6376d48ba$exports.debug = $0bb303b6376d48ba$var$debug; +$bbb9dac42384d004$exports.debug = $bbb9dac42384d004$var$debug; /** * Adds an error issue * @param message error issue message. Errors will be converted to string via toString() * @param properties optional properties to add to the annotation. - */ function $0bb303b6376d48ba$var$error(message, properties = {}) { - $6605380e9069822e$exports.issueCommand("error", $25a8cc9396483764$exports.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + */ function $bbb9dac42384d004$var$error(message, properties = {}) { + $6aa988ea1669fe85$exports.issueCommand("error", $1f87556d0f647bcd$exports.toCommandProperties(properties), message instanceof Error ? message.toString() : message); } -$0bb303b6376d48ba$exports.error = $0bb303b6376d48ba$var$error; +$bbb9dac42384d004$exports.error = $bbb9dac42384d004$var$error; /** * Adds a warning issue * @param message warning issue message. Errors will be converted to string via toString() * @param properties optional properties to add to the annotation. - */ function $0bb303b6376d48ba$var$warning(message, properties = {}) { - $6605380e9069822e$exports.issueCommand("warning", $25a8cc9396483764$exports.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + */ function $bbb9dac42384d004$var$warning(message, properties = {}) { + $6aa988ea1669fe85$exports.issueCommand("warning", $1f87556d0f647bcd$exports.toCommandProperties(properties), message instanceof Error ? message.toString() : message); } -$0bb303b6376d48ba$exports.warning = $0bb303b6376d48ba$var$warning; +$bbb9dac42384d004$exports.warning = $bbb9dac42384d004$var$warning; /** * Adds a notice issue * @param message notice issue message. Errors will be converted to string via toString() * @param properties optional properties to add to the annotation. - */ function $0bb303b6376d48ba$var$notice(message, properties = {}) { - $6605380e9069822e$exports.issueCommand("notice", $25a8cc9396483764$exports.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + */ function $bbb9dac42384d004$var$notice(message, properties = {}) { + $6aa988ea1669fe85$exports.issueCommand("notice", $1f87556d0f647bcd$exports.toCommandProperties(properties), message instanceof Error ? message.toString() : message); } -$0bb303b6376d48ba$exports.notice = $0bb303b6376d48ba$var$notice; +$bbb9dac42384d004$exports.notice = $bbb9dac42384d004$var$notice; /** * Writes info to log with console.log. * @param message info message - */ function $0bb303b6376d48ba$var$info(message) { - process.stdout.write(message + $0bb303b6376d48ba$var$os.EOL); + */ function $bbb9dac42384d004$var$info(message) { + process.stdout.write(message + $bbb9dac42384d004$var$os.EOL); } -$0bb303b6376d48ba$exports.info = $0bb303b6376d48ba$var$info; +$bbb9dac42384d004$exports.info = $bbb9dac42384d004$var$info; /** * Begin an output group. * * Output until the next `groupEnd` will be foldable in this group * * @param name The name of the output group - */ function $0bb303b6376d48ba$var$startGroup(name) { - $6605380e9069822e$exports.issue("group", name); + */ function $bbb9dac42384d004$var$startGroup(name) { + $6aa988ea1669fe85$exports.issue("group", name); } -$0bb303b6376d48ba$exports.startGroup = $0bb303b6376d48ba$var$startGroup; +$bbb9dac42384d004$exports.startGroup = $bbb9dac42384d004$var$startGroup; /** * End an output group. - */ function $0bb303b6376d48ba$var$endGroup() { - $6605380e9069822e$exports.issue("endgroup"); + */ function $bbb9dac42384d004$var$endGroup() { + $6aa988ea1669fe85$exports.issue("endgroup"); } -$0bb303b6376d48ba$exports.endGroup = $0bb303b6376d48ba$var$endGroup; +$bbb9dac42384d004$exports.endGroup = $bbb9dac42384d004$var$endGroup; /** * Wrap an asynchronous function call in a group. * @@ -642,19 +642,19 @@ $0bb303b6376d48ba$exports.endGroup = $0bb303b6376d48ba$var$endGroup; * * @param name The name of the group * @param fn The function to wrap in the group - */ function $0bb303b6376d48ba$var$group(name, fn) { - return $0bb303b6376d48ba$var$__awaiter(this, void 0, void 0, function*() { - $0bb303b6376d48ba$var$startGroup(name); + */ function $bbb9dac42384d004$var$group(name, fn) { + return $bbb9dac42384d004$var$__awaiter(this, void 0, void 0, function*() { + $bbb9dac42384d004$var$startGroup(name); let result; try { result = yield fn(); } finally{ - $0bb303b6376d48ba$var$endGroup(); + $bbb9dac42384d004$var$endGroup(); } return result; }); } -$0bb303b6376d48ba$exports.group = $0bb303b6376d48ba$var$group; +$bbb9dac42384d004$exports.group = $bbb9dac42384d004$var$group; //----------------------------------------------------------------------- // Wrapper action state //----------------------------------------------------------------------- @@ -664,29 +664,29 @@ $0bb303b6376d48ba$exports.group = $0bb303b6376d48ba$var$group; * @param name name of the state to store * @param value value to store. Non-string values will be converted to a string via JSON.stringify */ // eslint-disable-next-line @typescript-eslint/no-explicit-any -function $0bb303b6376d48ba$var$saveState(name, value) { - $6605380e9069822e$exports.issueCommand("save-state", { +function $bbb9dac42384d004$var$saveState(name, value) { + $6aa988ea1669fe85$exports.issueCommand("save-state", { name: name }, value); } -$0bb303b6376d48ba$exports.saveState = $0bb303b6376d48ba$var$saveState; +$bbb9dac42384d004$exports.saveState = $bbb9dac42384d004$var$saveState; /** * Gets the value of an state set by this action's main execution. * * @param name name of the state to get * @returns string - */ function $0bb303b6376d48ba$var$getState(name) { + */ function $bbb9dac42384d004$var$getState(name) { return process.env[`STATE_${name}`] || ""; } -$0bb303b6376d48ba$exports.getState = $0bb303b6376d48ba$var$getState; +$bbb9dac42384d004$exports.getState = $bbb9dac42384d004$var$getState; function $76d06fcdc9bff1f5$export$77714ac6976d0316(args) { - const opts = (0, $83fd64f7195557f0$export$2e2bcd8739ae039)(args, { + const opts = (0, $ec42a3295e12ea98$export$2e2bcd8739ae039)(args, { default: { - "cache-map": (0, $0bb303b6376d48ba$exports.getInput)("cache-map") || "{}", - "scratch-dir": (0, $0bb303b6376d48ba$exports.getInput)("scratch-dir") || "scratch", - "skip-extraction": ((0, $0bb303b6376d48ba$exports.getInput)("skip-extraction") || "false") === "true", + "cache-map": (0, $bbb9dac42384d004$exports.getInput)("cache-map") || "{}", + "scratch-dir": (0, $bbb9dac42384d004$exports.getInput)("scratch-dir") || "scratch", + "skip-extraction": ((0, $bbb9dac42384d004$exports.getInput)("skip-extraction") || "false") === "true", "extract": process.env[`STATE_POST`] !== undefined, "help": false }, @@ -708,7 +708,7 @@ function $76d06fcdc9bff1f5$export$77714ac6976d0316(args) { } }); if (opts["cache-source"] && opts["cache-target"]) { - (0, $0bb303b6376d48ba$exports.warning)("The `cache-source` and `cache-target` options are deprecated. Use `cache-map` instead."); + (0, $bbb9dac42384d004$exports.warning)("The `cache-source` and `cache-target` options are deprecated. Use `cache-map` instead."); opts["cache-map"] = JSON.stringify({ [opts["cache-source"]]: opts["cache-target"] }); @@ -772,30 +772,30 @@ function $76d06fcdc9bff1f5$export$238315f403b84074(cacheOptions) { } -var $57fb336faab90461$exports = {}; -var $3e93ed16e4c135d4$exports = {}; +var $03c48d50d9d7039f$exports = {}; +var $92de28abfb9027ac$exports = {}; "use strict"; -var $ba992259a21941a5$exports = {}; +var $9f07a96c8577f666$exports = {}; "use strict"; -var $9ae68499da2d8dc7$exports = {}; +var $37f30101baa1381d$exports = {}; "use strict"; -var $f1b992f1222e6b3f$exports = {}; -const $f1b992f1222e6b3f$var$isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys"; +var $10bb1950eec72619$exports = {}; +const $10bb1950eec72619$var$isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys"; -const $f1b992f1222e6b3f$var$COLON = $f1b992f1222e6b3f$var$isWindows ? ";" : ":"; -var $618a1a794aa1288c$exports = {}; +const $10bb1950eec72619$var$COLON = $10bb1950eec72619$var$isWindows ? ";" : ":"; +var $0b1af7ee1bc1c627$exports = {}; -var $618a1a794aa1288c$var$core; +var $0b1af7ee1bc1c627$var$core; -if (process.platform === "win32" || $parcel$global.TESTING_WINDOWS) $618a1a794aa1288c$var$core = (parcelRequire("02a0L")); -else $618a1a794aa1288c$var$core = (parcelRequire("eqVNx")); -$618a1a794aa1288c$exports = $618a1a794aa1288c$var$isexe; -$618a1a794aa1288c$var$isexe.sync = $618a1a794aa1288c$var$sync; -function $618a1a794aa1288c$var$isexe(path, options, cb) { +if (process.platform === "win32" || $parcel$global.TESTING_WINDOWS) $0b1af7ee1bc1c627$var$core = (parcelRequire("dE8Bn")); +else $0b1af7ee1bc1c627$var$core = (parcelRequire("5dXTc")); +$0b1af7ee1bc1c627$exports = $0b1af7ee1bc1c627$var$isexe; +$0b1af7ee1bc1c627$var$isexe.sync = $0b1af7ee1bc1c627$var$sync; +function $0b1af7ee1bc1c627$var$isexe(path, options, cb) { if (typeof options === "function") { cb = options; options = {}; @@ -803,13 +803,13 @@ function $618a1a794aa1288c$var$isexe(path, options, cb) { if (!cb) { if (typeof Promise !== "function") throw new TypeError("callback not provided"); return new Promise(function(resolve, reject) { - $618a1a794aa1288c$var$isexe(path, options || {}, function(er, is) { + $0b1af7ee1bc1c627$var$isexe(path, options || {}, function(er, is) { if (er) reject(er); else resolve(is); }); }); } - $618a1a794aa1288c$var$core(path, options || {}, function(er, is) { + $0b1af7ee1bc1c627$var$core(path, options || {}, function(er, is) { // ignore EACCES because that just means we aren't allowed to run it if (er) { if (er.code === "EACCES" || options && options.ignoreErrors) { @@ -820,10 +820,10 @@ function $618a1a794aa1288c$var$isexe(path, options, cb) { cb(er, is); }); } -function $618a1a794aa1288c$var$sync(path, options) { +function $0b1af7ee1bc1c627$var$sync(path, options) { // my kingdom for a filtered catch try { - return $618a1a794aa1288c$var$core.sync(path, options || {}); + return $0b1af7ee1bc1c627$var$core.sync(path, options || {}); } catch (er) { if (options && options.ignoreErrors || er.code === "EACCES") return false; else throw er; @@ -831,27 +831,27 @@ function $618a1a794aa1288c$var$sync(path, options) { } -const $f1b992f1222e6b3f$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), { +const $10bb1950eec72619$var$getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" }); -const $f1b992f1222e6b3f$var$getPathInfo = (cmd, opt)=>{ - const colon = opt.colon || $f1b992f1222e6b3f$var$COLON; +const $10bb1950eec72619$var$getPathInfo = (cmd, opt)=>{ + const colon = opt.colon || $10bb1950eec72619$var$COLON; // If it has a slash, then we don't bother searching the pathenv. // just check the file itself, and that's it. - const pathEnv = cmd.match(/\//) || $f1b992f1222e6b3f$var$isWindows && cmd.match(/\\/) ? [ + const pathEnv = cmd.match(/\//) || $10bb1950eec72619$var$isWindows && cmd.match(/\\/) ? [ "" ] : [ // windows always checks the cwd first - ...$f1b992f1222e6b3f$var$isWindows ? [ + ...$10bb1950eec72619$var$isWindows ? [ process.cwd() ] : [], ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */ "").split(colon) ]; - const pathExtExe = $f1b992f1222e6b3f$var$isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : ""; - const pathExt = $f1b992f1222e6b3f$var$isWindows ? pathExtExe.split(colon) : [ + const pathExtExe = $10bb1950eec72619$var$isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : ""; + const pathExt = $10bb1950eec72619$var$isWindows ? pathExtExe.split(colon) : [ "" ]; - if ($f1b992f1222e6b3f$var$isWindows) { + if ($10bb1950eec72619$var$isWindows) { if (cmd.indexOf(".") !== -1 && pathExt[0] !== "") pathExt.unshift(""); } return { @@ -860,16 +860,16 @@ const $f1b992f1222e6b3f$var$getPathInfo = (cmd, opt)=>{ pathExtExe: pathExtExe }; }; -const $f1b992f1222e6b3f$var$which = (cmd, opt, cb)=>{ +const $10bb1950eec72619$var$which = (cmd, opt, cb)=>{ if (typeof opt === "function") { cb = opt; opt = {}; } if (!opt) opt = {}; - const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $f1b992f1222e6b3f$var$getPathInfo(cmd, opt); + const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $10bb1950eec72619$var$getPathInfo(cmd, opt); const found = []; const step = (i)=>new Promise((resolve, reject)=>{ - if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject($f1b992f1222e6b3f$var$getNotFoundError(cmd)); + if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject($10bb1950eec72619$var$getNotFoundError(cmd)); const ppRaw = pathEnv[i]; const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw; const pCmd = $evV72$join(pathPart, cmd); @@ -879,7 +879,7 @@ const $f1b992f1222e6b3f$var$which = (cmd, opt, cb)=>{ const subStep = (p, i, ii)=>new Promise((resolve, reject)=>{ if (ii === pathExt.length) return resolve(step(i + 1)); const ext = pathExt[ii]; - $618a1a794aa1288c$exports(p + ext, { + $0b1af7ee1bc1c627$exports(p + ext, { pathExt: pathExtExe }, (er, is)=>{ if (!er && is) { @@ -891,9 +891,9 @@ const $f1b992f1222e6b3f$var$which = (cmd, opt, cb)=>{ }); return cb ? step(0).then((res)=>cb(null, res), cb) : step(0); }; -const $f1b992f1222e6b3f$var$whichSync = (cmd, opt)=>{ +const $10bb1950eec72619$var$whichSync = (cmd, opt)=>{ opt = opt || {}; - const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $f1b992f1222e6b3f$var$getPathInfo(cmd, opt); + const { pathEnv: pathEnv, pathExt: pathExt, pathExtExe: pathExtExe } = $10bb1950eec72619$var$getPathInfo(cmd, opt); const found = []; for(let i = 0; i < pathEnv.length; i++){ const ppRaw = pathEnv[i]; @@ -903,7 +903,7 @@ const $f1b992f1222e6b3f$var$whichSync = (cmd, opt)=>{ for(let j = 0; j < pathExt.length; j++){ const cur = p + pathExt[j]; try { - const is = $618a1a794aa1288c$exports.sync(cur, { + const is = $0b1af7ee1bc1c627$exports.sync(cur, { pathExt: pathExtExe }); if (is) { @@ -915,26 +915,26 @@ const $f1b992f1222e6b3f$var$whichSync = (cmd, opt)=>{ } if (opt.all && found.length) return found; if (opt.nothrow) return null; - throw $f1b992f1222e6b3f$var$getNotFoundError(cmd); + throw $10bb1950eec72619$var$getNotFoundError(cmd); }; -$f1b992f1222e6b3f$exports = $f1b992f1222e6b3f$var$which; -$f1b992f1222e6b3f$var$which.sync = $f1b992f1222e6b3f$var$whichSync; +$10bb1950eec72619$exports = $10bb1950eec72619$var$which; +$10bb1950eec72619$var$which.sync = $10bb1950eec72619$var$whichSync; -var $77303ac1821927db$exports = {}; +var $3487f7b8c16699fc$exports = {}; "use strict"; -const $77303ac1821927db$var$pathKey = (options = {})=>{ +const $3487f7b8c16699fc$var$pathKey = (options = {})=>{ const environment = options.env || process.env; const platform = options.platform || process.platform; if (platform !== "win32") return "PATH"; return Object.keys(environment).reverse().find((key)=>key.toUpperCase() === "PATH") || "Path"; }; -$77303ac1821927db$exports = $77303ac1821927db$var$pathKey; +$3487f7b8c16699fc$exports = $3487f7b8c16699fc$var$pathKey; // TODO: Remove this for the next major release -$77303ac1821927db$exports.default = $77303ac1821927db$var$pathKey; +$3487f7b8c16699fc$exports.default = $3487f7b8c16699fc$var$pathKey; -function $9ae68499da2d8dc7$var$resolveCommandAttempt(parsed, withoutPathExt) { +function $37f30101baa1381d$var$resolveCommandAttempt(parsed, withoutPathExt) { const env = parsed.options.env || process.env; const cwd = process.cwd(); const hasCustomCwd = parsed.options.cwd != null; @@ -948,8 +948,8 @@ function $9ae68499da2d8dc7$var$resolveCommandAttempt(parsed, withoutPathExt) { /* Empty */ } let resolved; try { - resolved = $f1b992f1222e6b3f$exports.sync(parsed.command, { - path: env[$77303ac1821927db$exports({ + resolved = $10bb1950eec72619$exports.sync(parsed.command, { + path: env[$3487f7b8c16699fc$exports({ env: env })], pathExt: withoutPathExt ? $evV72$delimiter : undefined @@ -963,23 +963,23 @@ function $9ae68499da2d8dc7$var$resolveCommandAttempt(parsed, withoutPathExt) { if (resolved) resolved = $evV72$resolve(hasCustomCwd ? parsed.options.cwd : "", resolved); return resolved; } -function $9ae68499da2d8dc7$var$resolveCommand(parsed) { - return $9ae68499da2d8dc7$var$resolveCommandAttempt(parsed) || $9ae68499da2d8dc7$var$resolveCommandAttempt(parsed, true); +function $37f30101baa1381d$var$resolveCommand(parsed) { + return $37f30101baa1381d$var$resolveCommandAttempt(parsed) || $37f30101baa1381d$var$resolveCommandAttempt(parsed, true); } -$9ae68499da2d8dc7$exports = $9ae68499da2d8dc7$var$resolveCommand; +$37f30101baa1381d$exports = $37f30101baa1381d$var$resolveCommand; -var $44f2128ace0ec487$export$ae50443ffc990749; -var $44f2128ace0ec487$export$6ea29ee575e3f5ff; +var $cbf6c9fb7b5a3003$export$ae50443ffc990749; +var $cbf6c9fb7b5a3003$export$6ea29ee575e3f5ff; "use strict"; // See http://www.robvanderwoude.com/escapechars.php -const $44f2128ace0ec487$var$metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g; -function $44f2128ace0ec487$var$escapeCommand(arg) { +const $cbf6c9fb7b5a3003$var$metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g; +function $cbf6c9fb7b5a3003$var$escapeCommand(arg) { // Escape meta chars - arg = arg.replace($44f2128ace0ec487$var$metaCharsRegExp, "^$1"); + arg = arg.replace($cbf6c9fb7b5a3003$var$metaCharsRegExp, "^$1"); return arg; } -function $44f2128ace0ec487$var$escapeArgument(arg, doubleEscapeMetaChars) { +function $cbf6c9fb7b5a3003$var$escapeArgument(arg, doubleEscapeMetaChars) { // Convert to string arg = `${arg}`; // Algorithm below is based on https://qntm.org/cmd @@ -994,27 +994,27 @@ function $44f2128ace0ec487$var$escapeArgument(arg, doubleEscapeMetaChars) { // Quote the whole thing: arg = `"${arg}"`; // Escape meta chars - arg = arg.replace($44f2128ace0ec487$var$metaCharsRegExp, "^$1"); + arg = arg.replace($cbf6c9fb7b5a3003$var$metaCharsRegExp, "^$1"); // Double escape meta chars if necessary - if (doubleEscapeMetaChars) arg = arg.replace($44f2128ace0ec487$var$metaCharsRegExp, "^$1"); + if (doubleEscapeMetaChars) arg = arg.replace($cbf6c9fb7b5a3003$var$metaCharsRegExp, "^$1"); return arg; } -$44f2128ace0ec487$export$ae50443ffc990749 = $44f2128ace0ec487$var$escapeCommand; -$44f2128ace0ec487$export$6ea29ee575e3f5ff = $44f2128ace0ec487$var$escapeArgument; +$cbf6c9fb7b5a3003$export$ae50443ffc990749 = $cbf6c9fb7b5a3003$var$escapeCommand; +$cbf6c9fb7b5a3003$export$6ea29ee575e3f5ff = $cbf6c9fb7b5a3003$var$escapeArgument; -var $3cca0e63723ee076$exports = {}; +var $4bfe3bff3b3eb488$exports = {}; "use strict"; -var $f6fe1e947c2cffc1$exports = {}; +var $550cee7733391e8f$exports = {}; "use strict"; -var $77a201907d13785e$exports = {}; +var $41ec2024f8465164$exports = {}; "use strict"; -$77a201907d13785e$exports = /^#!(.*)/; +$41ec2024f8465164$exports = /^#!(.*)/; -$f6fe1e947c2cffc1$exports = (string = "")=>{ - const match = string.match($77a201907d13785e$exports); +$550cee7733391e8f$exports = (string = "")=>{ + const match = string.match($41ec2024f8465164$exports); if (!match) return null; const [path, argument] = match[0].replace(/#! ?/, "").split(" "); const binary = path.split("/").pop(); @@ -1023,7 +1023,7 @@ $f6fe1e947c2cffc1$exports = (string = "")=>{ }; -function $3cca0e63723ee076$var$readShebang(command) { +function $4bfe3bff3b3eb488$var$readShebang(command) { // Read the first 150 bytes from the file const size = 150; const buffer = Buffer.alloc(size); @@ -1034,30 +1034,30 @@ function $3cca0e63723ee076$var$readShebang(command) { $evV72$closeSync(fd); } catch (e) {} // Attempt to extract shebang (null is returned if not a shebang) - return $f6fe1e947c2cffc1$exports(buffer.toString()); + return $550cee7733391e8f$exports(buffer.toString()); } -$3cca0e63723ee076$exports = $3cca0e63723ee076$var$readShebang; +$4bfe3bff3b3eb488$exports = $4bfe3bff3b3eb488$var$readShebang; -const $ba992259a21941a5$var$isWin = process.platform === "win32"; -const $ba992259a21941a5$var$isExecutableRegExp = /\.(?:com|exe)$/i; -const $ba992259a21941a5$var$isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i; -function $ba992259a21941a5$var$detectShebang(parsed) { - parsed.file = $9ae68499da2d8dc7$exports(parsed); - const shebang = parsed.file && $3cca0e63723ee076$exports(parsed.file); +const $9f07a96c8577f666$var$isWin = process.platform === "win32"; +const $9f07a96c8577f666$var$isExecutableRegExp = /\.(?:com|exe)$/i; +const $9f07a96c8577f666$var$isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i; +function $9f07a96c8577f666$var$detectShebang(parsed) { + parsed.file = $37f30101baa1381d$exports(parsed); + const shebang = parsed.file && $4bfe3bff3b3eb488$exports(parsed.file); if (shebang) { parsed.args.unshift(parsed.file); parsed.command = shebang; - return $9ae68499da2d8dc7$exports(parsed); + return $37f30101baa1381d$exports(parsed); } return parsed.file; } -function $ba992259a21941a5$var$parseNonShell(parsed) { - if (!$ba992259a21941a5$var$isWin) return parsed; +function $9f07a96c8577f666$var$parseNonShell(parsed) { + if (!$9f07a96c8577f666$var$isWin) return parsed; // Detect & add support for shebangs - const commandFile = $ba992259a21941a5$var$detectShebang(parsed); + const commandFile = $9f07a96c8577f666$var$detectShebang(parsed); // We don't need a shell if the command filename is an executable - const needsShell = !$ba992259a21941a5$var$isExecutableRegExp.test(commandFile); + const needsShell = !$9f07a96c8577f666$var$isExecutableRegExp.test(commandFile); // If a shell is required, use cmd.exe and take care of escaping everything correctly // Note that `forceShell` is an hidden option used only in tests if (parsed.options.forceShell || needsShell) { @@ -1065,13 +1065,13 @@ function $ba992259a21941a5$var$parseNonShell(parsed) { // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called, // we need to double escape them - const needsDoubleEscapeMetaChars = $ba992259a21941a5$var$isCmdShimRegExp.test(commandFile); + const needsDoubleEscapeMetaChars = $9f07a96c8577f666$var$isCmdShimRegExp.test(commandFile); // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar) // This is necessary otherwise it will always fail with ENOENT in those cases parsed.command = $evV72$normalize(parsed.command); // Escape command & arguments - parsed.command = $44f2128ace0ec487$export$ae50443ffc990749(parsed.command); - parsed.args = parsed.args.map((arg)=>$44f2128ace0ec487$export$6ea29ee575e3f5ff(arg, needsDoubleEscapeMetaChars)); + parsed.command = $cbf6c9fb7b5a3003$export$ae50443ffc990749(parsed.command); + parsed.args = parsed.args.map((arg)=>$cbf6c9fb7b5a3003$export$6ea29ee575e3f5ff(arg, needsDoubleEscapeMetaChars)); const shellCommand = [ parsed.command ].concat(parsed.args).join(" "); @@ -1086,7 +1086,7 @@ function $ba992259a21941a5$var$parseNonShell(parsed) { } return parsed; } -function $ba992259a21941a5$var$parse(command, args, options) { +function $9f07a96c8577f666$var$parse(command, args, options) { // Normalize arguments, similar to nodejs if (args && !Array.isArray(args)) { options = args; @@ -1106,15 +1106,15 @@ function $ba992259a21941a5$var$parse(command, args, options) { } }; // Delegate further parsing to shell or non-shell - return options.shell ? parsed : $ba992259a21941a5$var$parseNonShell(parsed); + return options.shell ? parsed : $9f07a96c8577f666$var$parseNonShell(parsed); } -$ba992259a21941a5$exports = $ba992259a21941a5$var$parse; +$9f07a96c8577f666$exports = $9f07a96c8577f666$var$parse; -var $ac602fd4d31c6b69$exports = {}; +var $1ef36613317ba37d$exports = {}; "use strict"; -const $ac602fd4d31c6b69$var$isWin = process.platform === "win32"; -function $ac602fd4d31c6b69$var$notFoundError(original, syscall) { +const $1ef36613317ba37d$var$isWin = process.platform === "win32"; +function $1ef36613317ba37d$var$notFoundError(original, syscall) { return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), { code: "ENOENT", errno: "ENOENT", @@ -1123,60 +1123,60 @@ function $ac602fd4d31c6b69$var$notFoundError(original, syscall) { spawnargs: original.args }); } -function $ac602fd4d31c6b69$var$hookChildProcess(cp, parsed) { - if (!$ac602fd4d31c6b69$var$isWin) return; +function $1ef36613317ba37d$var$hookChildProcess(cp, parsed) { + if (!$1ef36613317ba37d$var$isWin) return; const originalEmit = cp.emit; cp.emit = function(name, arg1) { // If emitting "exit" event and exit code is 1, we need to check if // the command exists and emit an "error" instead // See https://github.com/IndigoUnited/node-cross-spawn/issues/16 if (name === "exit") { - const err = $ac602fd4d31c6b69$var$verifyENOENT(arg1, parsed, "spawn"); + const err = $1ef36613317ba37d$var$verifyENOENT(arg1, parsed, "spawn"); if (err) return originalEmit.call(cp, "error", err); } return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params }; } -function $ac602fd4d31c6b69$var$verifyENOENT(status, parsed) { - if ($ac602fd4d31c6b69$var$isWin && status === 1 && !parsed.file) return $ac602fd4d31c6b69$var$notFoundError(parsed.original, "spawn"); +function $1ef36613317ba37d$var$verifyENOENT(status, parsed) { + if ($1ef36613317ba37d$var$isWin && status === 1 && !parsed.file) return $1ef36613317ba37d$var$notFoundError(parsed.original, "spawn"); return null; } -function $ac602fd4d31c6b69$var$verifyENOENTSync(status, parsed) { - if ($ac602fd4d31c6b69$var$isWin && status === 1 && !parsed.file) return $ac602fd4d31c6b69$var$notFoundError(parsed.original, "spawnSync"); +function $1ef36613317ba37d$var$verifyENOENTSync(status, parsed) { + if ($1ef36613317ba37d$var$isWin && status === 1 && !parsed.file) return $1ef36613317ba37d$var$notFoundError(parsed.original, "spawnSync"); return null; } -$ac602fd4d31c6b69$exports = { - hookChildProcess: $ac602fd4d31c6b69$var$hookChildProcess, - verifyENOENT: $ac602fd4d31c6b69$var$verifyENOENT, - verifyENOENTSync: $ac602fd4d31c6b69$var$verifyENOENTSync, - notFoundError: $ac602fd4d31c6b69$var$notFoundError +$1ef36613317ba37d$exports = { + hookChildProcess: $1ef36613317ba37d$var$hookChildProcess, + verifyENOENT: $1ef36613317ba37d$var$verifyENOENT, + verifyENOENTSync: $1ef36613317ba37d$var$verifyENOENTSync, + notFoundError: $1ef36613317ba37d$var$notFoundError }; -function $3e93ed16e4c135d4$var$spawn(command, args, options) { +function $92de28abfb9027ac$var$spawn(command, args, options) { // Parse the arguments - const parsed = $ba992259a21941a5$exports(command, args, options); + const parsed = $9f07a96c8577f666$exports(command, args, options); // Spawn the child process const spawned = $evV72$spawn(parsed.command, parsed.args, parsed.options); // Hook into child process "exit" event to emit an error if the command // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 - $ac602fd4d31c6b69$exports.hookChildProcess(spawned, parsed); + $1ef36613317ba37d$exports.hookChildProcess(spawned, parsed); return spawned; } -function $3e93ed16e4c135d4$var$spawnSync(command, args, options) { +function $92de28abfb9027ac$var$spawnSync(command, args, options) { // Parse the arguments - const parsed = $ba992259a21941a5$exports(command, args, options); + const parsed = $9f07a96c8577f666$exports(command, args, options); // Spawn the child process const result = $evV72$spawnSync(parsed.command, parsed.args, parsed.options); // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 - result.error = result.error || $ac602fd4d31c6b69$exports.verifyENOENTSync(result.status, parsed); + result.error = result.error || $1ef36613317ba37d$exports.verifyENOENTSync(result.status, parsed); return result; } -$3e93ed16e4c135d4$exports = $3e93ed16e4c135d4$var$spawn; -$3e93ed16e4c135d4$exports.spawn = $3e93ed16e4c135d4$var$spawn; -$3e93ed16e4c135d4$exports.sync = $3e93ed16e4c135d4$var$spawnSync; -$3e93ed16e4c135d4$exports._parse = $ba992259a21941a5$exports; -$3e93ed16e4c135d4$exports._enoent = $ac602fd4d31c6b69$exports; +$92de28abfb9027ac$exports = $92de28abfb9027ac$var$spawn; +$92de28abfb9027ac$exports.spawn = $92de28abfb9027ac$var$spawn; +$92de28abfb9027ac$exports.sync = $92de28abfb9027ac$var$spawnSync; +$92de28abfb9027ac$exports._parse = $9f07a96c8577f666$exports; +$92de28abfb9027ac$exports._enoent = $1ef36613317ba37d$exports; /** Spawns a child process, as long as you ask nicely. @@ -1186,12 +1186,12 @@ $3e93ed16e4c135d4$exports._enoent = $ac602fd4d31c6b69$exports; * @param {{ rejectOnError?: boolean, stdin?: string, stderr?: (data: string) => void, stdout?: (data: string) => void }} [options] - Options. * @param {any} [spawnOptions] - Options that are passed directly to child_process.spawn. Also supports stdin: string. * @returns {Promise<{ stdout: string, stderr: string }>} - */ const $57fb336faab90461$var$spawnPlease = (command, args, options = {}, spawnOptions = {})=>{ + */ const $03c48d50d9d7039f$var$spawnPlease = (command, args, options = {}, spawnOptions = {})=>{ // defaults if (options.rejectOnError === undefined) options.rejectOnError = true; let stdout = ""; let stderr = ""; - const child = $3e93ed16e4c135d4$exports(command, args, spawnOptions); + const child = $92de28abfb9027ac$exports(command, args, spawnOptions); return new Promise((resolve, reject)=>{ if (options.stdin !== undefined && options.stdin != null) child.stdin.write(options.stdin); child.stdin.end(); @@ -1213,13 +1213,13 @@ $3e93ed16e4c135d4$exports._enoent = $ac602fd4d31c6b69$exports; }); }); }; -$57fb336faab90461$exports = $57fb336faab90461$var$spawnPlease; +$03c48d50d9d7039f$exports = $03c48d50d9d7039f$var$spawnPlease; async function $4c028fad90f63861$export$889ea624f2cb2c57(command, args) { try { - return await (0, (/*@__PURE__*/$parcel$interopDefault($57fb336faab90461$exports)))(command, args); + return await (0, (/*@__PURE__*/$parcel$interopDefault($03c48d50d9d7039f$exports)))(command, args); } catch (error) { console.error(`Error running command: ${command} ${args.join(" ")}`); throw error; @@ -1311,7 +1311,7 @@ RUN --mount=${mountArgs} \ }); } catch (err) { // Ignore Cleaning Errors - (0, $0bb303b6376d48ba$exports.notice)(`Error while cleaning cache source directory: ${err}. Ignoring...`); + (0, $bbb9dac42384d004$exports.notice)(`Error while cleaning cache source directory: ${err}. Ignoring...`); } } async function $bd1d73aff0732146$export$38c65e9f06d3d433(opts) { diff --git a/dist/index.js.map b/dist/index.js.map index 3596dba..c424357 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iBAAiB;AACjB,4BAAM,IAAI,GAAG;;AAIb,SAAS,mCAAc,IAAI,EAAE,OAAO;IAClC,IAAI,UAAU,QAAQ,OAAO,KAAK,YAChC,QAAQ,OAAO,GAAG,QAAQ,GAAG,CAAC,OAAO;IAEvC,IAAI,CAAC,SACH,OAAO;IAGT,UAAU,QAAQ,KAAK,CAAC;IACxB,IAAI,QAAQ,OAAO,CAAC,QAAQ,IAC1B,OAAO;IAET,IAAK,IAAI,IAAI,GAAG,IAAI,QAAQ,MAAM,EAAE,IAAK;QACvC,IAAI,IAAI,OAAO,CAAC,EAAE,CAAC,WAAW;QAC9B,IAAI,KAAK,KAAK,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,OAAO,GAChD,OAAO;IAEX;IACA,OAAO;AACT;AAEA,SAAS,gCAAW,IAAI,EAAE,IAAI,EAAE,OAAO;IACrC,IAAI,CAAC,KAAK,cAAc,MAAM,CAAC,KAAK,MAAM,IACxC,OAAO;IAET,OAAO,mCAAa,MAAM;AAC5B;AAEA,SAAS,4BAAO,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/B,YAAQ,MAAM,SAAU,EAAE,EAAE,IAAI;QAC9B,GAAG,IAAI,KAAK,QAAQ,gCAAU,MAAM,MAAM;IAC5C;AACF;AAEA,SAAS,2BAAM,IAAI,EAAE,OAAO;IAC1B,OAAO,gCAAU,gBAAY,OAAO,MAAM;AAC5C;;;;;ACzCA,iBAAiB;AACjB,4BAAM,IAAI,GAAG;;AAIb,SAAS,4BAAO,IAAI,EAAE,OAAO,EAAE,EAAE;IAC/B,YAAQ,MAAM,SAAU,EAAE,EAAE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GAAA,yCAAW,EAAE;IACrB;AACF;AAEA,IAAI;IACF,MAAM,2BAAK,QAAQ,IAAI;AACzB,EAAE,OAAO,KAAK;IACZ,QAAQ,KAAK,CAAC;IACd,IAAI,eAAe,OACjB,QAAQ,KAAK,CAAC,IAAI,KAAK;IAEzB,QAAQ,IAAI,CAAC;AACf","sources":["node_modules/isexe/windows.js","node_modules/isexe/mode.js","src/index.ts","src/inject-cache.ts","src/opts.ts","node_modules/mri/lib/index.mjs","node_modules/@actions/core/lib/core.js","node_modules/@actions/core/src/core.ts","node_modules/@actions/core/lib/command.js","node_modules/@actions/core/src/command.ts","node_modules/@actions/core/lib/utils.js","node_modules/@actions/core/src/utils.ts","node_modules/@actions/core/lib/file-command.js","node_modules/@actions/core/src/file-command.ts","src/run.ts","node_modules/spawn-please/src/index.js","node_modules/cross-spawn/index.js","node_modules/cross-spawn/lib/parse.js","node_modules/cross-spawn/lib/util/resolveCommand.js","node_modules/which/which.js","node_modules/isexe/index.js","node_modules/path-key/index.js","node_modules/cross-spawn/lib/util/escape.js","node_modules/cross-spawn/lib/util/readShebang.js","node_modules/shebang-command/index.js","node_modules/shebang-regex/index.js","node_modules/cross-spawn/lib/enoent.js","src/extract-cache.ts"],"sourcesContent":["module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","import fs from \"fs/promises\";\nimport os from \"os\";\nimport { injectCaches } from \"./inject-cache.js\";\nimport { extractCaches } from \"./extract-cache.js\";\nimport { help, parseOpts } from \"./opts.js\";\n\nasync function main(args: string[]) {\n const opts = parseOpts(args);\n\n if (opts.help) {\n return help();\n }\n\n if (opts.extract) {\n // Run the post step\n await extractCaches(opts);\n } else {\n // Otherwise, this is the main step\n if (process.env.GITHUB_STATE !== undefined) {\n await fs.appendFile(process.env.GITHUB_STATE, `POST=true${os.EOL}`);\n }\n await injectCaches(opts);\n }\n}\n\ntry {\n await main(process.argv);\n} catch (err) {\n console.error(err);\n if (err instanceof Error) {\n console.error(err.stack);\n }\n process.exit(1);\n}\n","import fs from 'fs/promises';\nimport path from 'path';\nimport { CacheOptions, Opts, getCacheMap, getMountArgsString, getTargetPath, getUID, getGID } from './opts.js';\nimport { run } from './run.js';\nimport { notice } from '@actions/core';\n\nasync function injectCache(cacheSource: string, cacheOptions: CacheOptions, scratchDir: string) {\n // Clean Scratch Directory\n await fs.rm(scratchDir, { recursive: true, force: true });\n await fs.mkdir(scratchDir, { recursive: true });\n\n // Prepare Cache Source Directory\n await fs.mkdir(cacheSource, { recursive: true });\n\n // Prepare Timestamp for Layer Cache Busting\n const date = new Date().toISOString();\n await fs.writeFile(path.join(cacheSource, 'buildstamp'), date);\n\n const targetPath = getTargetPath(cacheOptions);\n const mountArgs = getMountArgsString(cacheOptions);\n\n // If UID OR GID are set, then add chown to restore files ownership.\n let ownershipCommand = \"\";\n const uid = getUID(cacheOptions);\n const gid = getGID(cacheOptions);\n if (uid !== \"\" || gid !== \"\") {\n ownershipCommand = `&& chown -R ${uid}:${gid} ${targetPath}`\n }\n\n // Prepare Dancefile to Access Caches\n const dancefileContent = `\nFROM busybox:1\nCOPY buildstamp buildstamp\nRUN --mount=${mountArgs} \\\n --mount=type=bind,source=.,target=/var/dance-cache \\\n cp -p -R /var/dance-cache/. ${targetPath} ${ownershipCommand} || true\n`;\n await fs.writeFile(path.join(scratchDir, 'Dancefile.inject'), dancefileContent);\n console.log(dancefileContent);\n\n // Inject Data into Docker Cache\n await run('docker', ['buildx', 'build', '-f', path.join(scratchDir, 'Dancefile.inject'), '--tag', 'dance:inject', cacheSource]);\n\n // Clean Directories\n try {\n await fs.rm(cacheSource, { recursive: true, force: true });\n } catch (err) {\n // Ignore Cleaning Errors\n notice(`Error while cleaning cache source directory: ${err}. Ignoring...`);\n }\n}\n\n\nexport async function injectCaches(opts: Opts) {\n const cacheMap = getCacheMap(opts);\n const scratchDir = opts['scratch-dir'];\n\n // Inject Caches for each source-target pair\n for (const [cacheSource, cacheOptions] of Object.entries(cacheMap)) {\n await injectCache(cacheSource, cacheOptions, scratchDir);\n }\n}\n","import mri from 'mri';\nimport { getInput, warning } from '@actions/core';\n\nexport type Opts = {\n \"extract\": boolean\n \"cache-map\": string\n \"scratch-dir\": string\n \"skip-extraction\": boolean\n help: boolean\n /** @deprecated Use `cache-map` instead */\n \"cache-source\"?: string\n /** @deprecated Use `cache-map` instead */\n \"cache-target\"?: string\n}\n\nexport function parseOpts(args: string[]): mri.Argv {\n const opts = mri(args, {\n default: {\n \"cache-map\": getInput(\"cache-map\") || \"{}\",\n \"scratch-dir\": getInput(\"scratch-dir\") || \"scratch\",\n \"skip-extraction\": (getInput(\"skip-extraction\") || \"false\") === \"true\",\n \"extract\": process.env[`STATE_POST`] !== undefined,\n \"help\": false,\n },\n string: [\"cache-map\", \"scratch-dir\", \"cache-source\", \"cache-target\"],\n boolean: [\"skip-extraction\", \"help\", \"extract\"],\n alias: {\n \"help\": [\"h\"],\n },\n })\n\n if (opts[\"cache-source\"] && opts[\"cache-target\"]) {\n warning(\"The `cache-source` and `cache-target` options are deprecated. Use `cache-map` instead.\")\n\n opts[\"cache-map\"] = JSON.stringify({\n [opts[\"cache-source\"]]: opts[\"cache-target\"],\n });\n }\n\n return opts;\n}\n\nexport function help() {\n console.log(`build-cache-dance [options]\nSave 'RUN --mount=type=cache' caches on GitHub Actions or other CI platforms\n\nOptions:\n --extract Extract the cache from the docker container (extract step). Otherwise, inject the cache (main step)\n --cache-map The map of actions source paths to container destination paths or mount arguments\n --scratch-dir Where the action is stores some temporary files for its processing. Default: 'scratch'\n --skip-extraction Skip the extraction of the cache from the docker container\n --help Show this help\n`);\n}\n\nexport type SourcePath = string\nexport type TargetPath = string\nexport type ToStringable = {\n toString(): string;\n}\nexport type CacheOptions = TargetPath | { target: TargetPath } & Record\nexport type CacheMap = Record\n\nexport function getCacheMap(opts: Opts): CacheMap {\n try {\n return JSON.parse(opts[\"cache-map\"]) as CacheMap;\n } catch (e) {\n throw new Error(`Failed to parse cache map. Expected JSON, got:\\n${opts[\"cache-map\"]}\\n${e}`);\n }\n}\n\nexport function getTargetPath(cacheOptions: CacheOptions): TargetPath {\n if (typeof cacheOptions === \"string\") {\n // only the target path is provided\n return cacheOptions;\n } else {\n // object is provided\n if (\"target\" in cacheOptions) {\n return cacheOptions.target;\n } else {\n throw new Error(`Expected the 'target' key in the cache options, got:\\n${cacheOptions}`);\n }\n }\n}\n\nexport function getUID(cacheOptions: CacheOptions): string {\n if (typeof cacheOptions === \"string\") {\n // only the target path is provided\n return \"\";\n } else {\n // object is provided\n if (\"uid\" in cacheOptions && cacheOptions.uid !== undefined) {\n return cacheOptions.uid.toString();\n } else {\n return \"\";\n }\n }\n}\n\nexport function getGID(cacheOptions: CacheOptions): string {\n if (typeof cacheOptions === \"string\") {\n // only the target path is provided\n return \"\";\n } else {\n // object is provided\n if (\"gid\" in cacheOptions && cacheOptions.gid !== undefined) {\n return cacheOptions.gid.toString();\n } else {\n return \"\";\n }\n }\n}\n\n/**\n * Convert a cache options to a string that is passed to --mount=\n * @param CacheOptions The cache options to convert to a string\n */\nexport function getMountArgsString(cacheOptions: CacheOptions): string {\n if (typeof cacheOptions === \"string\") {\n // only the target path is provided\n return `type=cache,target=${cacheOptions}`;\n } else {\n // other options are provided\n const otherOptions = Object.entries(cacheOptions).map(([key, value]) => `${key}=${value}`).join(\",\");\n return `type=cache,${otherOptions}`;\n }\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n",null,null,null,null,null,null,null,null,"import spawnPlease from 'spawn-please'\nimport cp, { type ChildProcess } from 'child_process';\n\nexport async function run(command: string, args: string[]) {\n try {\n return await spawnPlease(command, args);\n } catch (error) {\n console.error(`Error running command: ${command} ${args.join(' ')}`);\n throw error;\n }\n}\n\nexport async function runPiped([command1, args1]: [string, string[]], [command2, args2]: [string, string[]]) {\n const cp1 = cp.spawn(command1, args1, { stdio: ['inherit', 'pipe', 'inherit'] });\n const cp2 = cp.spawn(command2, args2, { stdio: ['pipe', 'inherit', 'inherit'] });\n\n cp1.stdout.pipe(cp2.stdin);\n\n await Promise.all([assertSuccess(cp1), assertSuccess(cp2)]);\n}\n\nfunction assertSuccess(cp: ChildProcess) {\n return new Promise((resolve, reject) => {\n cp.on('error', (error) => {\n reject(error);\n });\n cp.on('close', (code) => {\n if (code !== 0) {\n reject(new Error(`process exited with code ${code}`));\n }\n resolve();\n });\n });\n}\n","const spawn = require('cross-spawn')\n\n/** Spawns a child process, as long as you ask nicely.\n * \n * @param {string} command - The shell command to execute.\n * @param {string[]} [args] - An array of arguments that are given after the command.\n * @param {{ rejectOnError?: boolean, stdin?: string, stderr?: (data: string) => void, stdout?: (data: string) => void }} [options] - Options.\n * @param {any} [spawnOptions] - Options that are passed directly to child_process.spawn. Also supports stdin: string.\n * @returns {Promise<{ stdout: string, stderr: string }>}\n */\nconst spawnPlease = (command, args, options={}, spawnOptions={}) => {\n // defaults\n if (options.rejectOnError === undefined) {\n options.rejectOnError = true\n }\n\n let stdout = ''\n let stderr = ''\n const child = spawn(command, args, spawnOptions)\n\n return new Promise((resolve, reject) => {\n if (options.stdin !== undefined && options.stdin != null) {\n child.stdin.write(options.stdin)\n }\n child.stdin.end()\n\n child.stdout.on('data', data => {\n stdout += data\n if (options.stdout) options.stdout(data)\n })\n\n child.stderr.on('data', data => {\n stderr += data\n if (options.stderr) options.stderr(data)\n })\n\n if (options.rejectOnError) {\n child.addListener('error', reject)\n }\n\n child.on('close', code => {\n if (code !== 0 && options.rejectOnError) {\n reject(stderr)\n } else {\n resolve({ stdout, stderr })\n }\n })\n })\n}\n\nmodule.exports = spawnPlease\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","import fs from 'fs/promises';\nimport path from 'path';\nimport { CacheOptions, Opts, getCacheMap, getMountArgsString, getTargetPath } from './opts.js';\nimport { run, runPiped } from './run.js';\n\nasync function extractCache(cacheSource: string, cacheOptions: CacheOptions, scratchDir: string) {\n // Prepare Timestamp for Layer Cache Busting\n const date = new Date().toISOString();\n \n await fs.mkdir(scratchDir, { recursive: true });\n await fs.writeFile(path.join(scratchDir, 'buildstamp'), date);\n\n // Prepare Dancefile to Access Caches\n const targetPath = getTargetPath(cacheOptions);\n const mountArgs = getMountArgsString(cacheOptions);\n\n const dancefileContent = `\nFROM busybox:1\nCOPY buildstamp buildstamp\nRUN --mount=${mountArgs} \\\n mkdir -p /var/dance-cache/ \\\n && cp -p -R ${targetPath}/. /var/dance-cache/ || true\n`;\n await fs.writeFile(path.join(scratchDir, 'Dancefile.extract'), dancefileContent);\n console.log(dancefileContent);\n\n // Extract Data into Docker Image\n await run('docker', ['buildx', 'build', '-f', path.join(scratchDir, 'Dancefile.extract'), '--tag', 'dance:extract', '--load', scratchDir]);\n\n // Create Extraction Image\n try {\n await run('docker', ['rm', '-f', 'cache-container']);\n } catch (error) {\n // Ignore error if container does not exist\n }\n await run('docker', ['create', '-ti', '--name', 'cache-container', 'dance:extract']);\n\n // Unpack Docker Image into Scratch\n await runPiped(\n ['docker', ['cp', '-L', 'cache-container:/var/dance-cache', '-']],\n ['tar', ['-H', 'posix', '-x', '-C', scratchDir]]\n );\n\n // Move Cache into Its Place\n await fs.rm(cacheSource, { recursive: true, force: true });\n await fs.rename(path.join(scratchDir, 'dance-cache'), cacheSource);\n}\n\nexport async function extractCaches(opts: Opts) {\n if (opts[\"skip-extraction\"]) {\n console.log(\"skip-extraction is set. Skipping extraction step...\");\n return;\n }\n\n const cacheMap = getCacheMap(opts);\n const scratchDir = opts['scratch-dir'];\n\n // Extract Caches for each source-target pair\n for (const [cacheSource, cacheOptions] of Object.entries(cacheMap)) {\n await extractCache(cacheSource, cacheOptions, scratchDir);\n }\n}\n"],"names":[],"version":3,"file":"index.js.map","sourceRoot":"../"} \ No newline at end of file +{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iBAAiB;AACjB,4BAAM,IAAI,GAAG;;AAIb,SAAS,mCAAc,IAAI,EAAE,OAAO;IAClC,IAAI,UAAU,QAAQ,OAAO,KAAK,YAChC,QAAQ,OAAO,GAAG,QAAQ,GAAG,CAAC,OAAO;IAEvC,IAAI,CAAC,SACH,OAAO;IAGT,UAAU,QAAQ,KAAK,CAAC;IACxB,IAAI,QAAQ,OAAO,CAAC,QAAQ,IAC1B,O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BAAgB;AAC1D;AAEO,eAAe,0CAAc,IAAU;IAC1C,IAAI,IAAI,CAAC,kBAAkB,EAAE;QACzB,QAAQ,GAAG,CAAC;QACZ;IACJ;IAEA,MAAM,WAAW,CAAA,GAAA,yCAAU,EAAE;IAC7B,MAAM,aAAa,IAAI,CAAC,cAAc;IAEtC,6CAA6C;IAC7C,KAAK,MAAM,CAAC,aAAa,aAAa,IAAI,OAAO,OAAO,CAAC,UACrD,MAAM,mCAAa,aAAa,cAAc;AAEtD;;;;AzBvDA,eAAe,2BAAK,IAAc;IAChC,MAAM,OAAO,CAAA,GAAA,yCAAQ,EAAE;IAEvB,IAAI,KAAK,IAAI,EACX,OAAO,CAAA,GAAA,yCAAG;IAGZ,IAAI,KAAK,OAAO,EACd,oBAAoB;IACpB,MAAM,CAAA,GAAA,yCAAY,EAAE;SACf;QACL,mCAAmC;QACnC,IAAI,QAAQ,GAAG,CAAC,YAAY,KAAK,WAC/B,MAAM,CAAA,GAAA,iBAAC,EAAE,UAAU,CAAC,QAAQ,GAAG,CAAC,YAAY,EAAE,CAAC,SAAS,EAAE,CAAA,GAAA,SAAC,EAAE,GAAG,CAAC,CAAC;QAEpE,MAAM,CAAA,GAAA,yCAAW,EAAE;IACrB;AACF;AAEA,IAAI;IACF,MAAM,2BAAK,QAAQ,IAAI;AACzB,EAAE,OAAO,KAAK;IACZ,QAAQ,KAAK,CAAC;IACd,IAAI,eAAe,OACjB,QAAQ,KAAK,CAAC,IAAI,KAAK;IAEzB,QAAQ,IAAI,CAAC;AACf","sources":["node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js","src/index.ts","src/inject-cache.ts","src/opts.ts","node_modules/.pnpm/mri@1.2.0/node_modules/mri/lib/index.mjs","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/lib/core.js","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/src/core.ts","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/lib/command.js","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/src/command.ts","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/lib/utils.js","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/src/utils.ts","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/lib/file-command.js","node_modules/.pnpm/@actions+core@1.5.0/node_modules/@actions/core/src/file-command.ts","src/run.ts","node_modules/.pnpm/spawn-please@3.0.0/node_modules/spawn-please/src/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js","node_modules/.pnpm/which@2.0.2/node_modules/which/which.js","node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js","node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js","node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js","node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js","node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js","src/extract-cache.ts"],"sourcesContent":["module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction checkPathExt (path, options) {\n var pathext = options.pathExt !== undefined ?\n options.pathExt : process.env.PATHEXT\n\n if (!pathext) {\n return true\n }\n\n pathext = pathext.split(';')\n if (pathext.indexOf('') !== -1) {\n return true\n }\n for (var i = 0; i < pathext.length; i++) {\n var p = pathext[i].toLowerCase()\n if (p && path.substr(-p.length).toLowerCase() === p) {\n return true\n }\n }\n return false\n}\n\nfunction checkStat (stat, path, options) {\n if (!stat.isSymbolicLink() && !stat.isFile()) {\n return false\n }\n return checkPathExt(path, options)\n}\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, path, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), path, options)\n}\n","module.exports = isexe\nisexe.sync = sync\n\nvar fs = require('fs')\n\nfunction isexe (path, options, cb) {\n fs.stat(path, function (er, stat) {\n cb(er, er ? false : checkStat(stat, options))\n })\n}\n\nfunction sync (path, options) {\n return checkStat(fs.statSync(path), options)\n}\n\nfunction checkStat (stat, options) {\n return stat.isFile() && checkMode(stat, options)\n}\n\nfunction checkMode (stat, options) {\n var mod = stat.mode\n var uid = stat.uid\n var gid = stat.gid\n\n var myUid = options.uid !== undefined ?\n options.uid : process.getuid && process.getuid()\n var myGid = options.gid !== undefined ?\n options.gid : process.getgid && process.getgid()\n\n var u = parseInt('100', 8)\n var g = parseInt('010', 8)\n var o = parseInt('001', 8)\n var ug = u | g\n\n var ret = (mod & o) ||\n (mod & g) && gid === myGid ||\n (mod & u) && uid === myUid ||\n (mod & ug) && myUid === 0\n\n return ret\n}\n","import fs from \"fs/promises\";\nimport os from \"os\";\nimport { injectCaches } from \"./inject-cache.js\";\nimport { extractCaches } from \"./extract-cache.js\";\nimport { help, parseOpts } from \"./opts.js\";\n\nasync function main(args: string[]) {\n const opts = parseOpts(args);\n\n if (opts.help) {\n return help();\n }\n\n if (opts.extract) {\n // Run the post step\n await extractCaches(opts);\n } else {\n // Otherwise, this is the main step\n if (process.env.GITHUB_STATE !== undefined) {\n await fs.appendFile(process.env.GITHUB_STATE, `POST=true${os.EOL}`);\n }\n await injectCaches(opts);\n }\n}\n\ntry {\n await main(process.argv);\n} catch (err) {\n console.error(err);\n if (err instanceof Error) {\n console.error(err.stack);\n }\n process.exit(1);\n}\n","import fs from 'fs/promises';\nimport path from 'path';\nimport { CacheOptions, Opts, getCacheMap, getMountArgsString, getTargetPath, getUID, getGID } from './opts.js';\nimport { run } from './run.js';\nimport { notice } from '@actions/core';\n\nasync function injectCache(cacheSource: string, cacheOptions: CacheOptions, scratchDir: string) {\n // Clean Scratch Directory\n await fs.rm(scratchDir, { recursive: true, force: true });\n await fs.mkdir(scratchDir, { recursive: true });\n\n // Prepare Cache Source Directory\n await fs.mkdir(cacheSource, { recursive: true });\n\n // Prepare Timestamp for Layer Cache Busting\n const date = new Date().toISOString();\n await fs.writeFile(path.join(cacheSource, 'buildstamp'), date);\n\n const targetPath = getTargetPath(cacheOptions);\n const mountArgs = getMountArgsString(cacheOptions);\n\n // If UID OR GID are set, then add chown to restore files ownership.\n let ownershipCommand = \"\";\n const uid = getUID(cacheOptions);\n const gid = getGID(cacheOptions);\n if (uid !== \"\" || gid !== \"\") {\n ownershipCommand = `&& chown -R ${uid}:${gid} ${targetPath}`\n }\n\n // Prepare Dancefile to Access Caches\n const dancefileContent = `\nFROM busybox:1\nCOPY buildstamp buildstamp\nRUN --mount=${mountArgs} \\\n --mount=type=bind,source=.,target=/var/dance-cache \\\n cp -p -R /var/dance-cache/. ${targetPath} ${ownershipCommand} || true\n`;\n await fs.writeFile(path.join(scratchDir, 'Dancefile.inject'), dancefileContent);\n console.log(dancefileContent);\n\n // Inject Data into Docker Cache\n await run('docker', ['buildx', 'build', '-f', path.join(scratchDir, 'Dancefile.inject'), '--tag', 'dance:inject', cacheSource]);\n\n // Clean Directories\n try {\n await fs.rm(cacheSource, { recursive: true, force: true });\n } catch (err) {\n // Ignore Cleaning Errors\n notice(`Error while cleaning cache source directory: ${err}. Ignoring...`);\n }\n}\n\n\nexport async function injectCaches(opts: Opts) {\n const cacheMap = getCacheMap(opts);\n const scratchDir = opts['scratch-dir'];\n\n // Inject Caches for each source-target pair\n for (const [cacheSource, cacheOptions] of Object.entries(cacheMap)) {\n await injectCache(cacheSource, cacheOptions, scratchDir);\n }\n}\n","import mri from 'mri';\nimport { getInput, warning } from '@actions/core';\n\nexport type Opts = {\n \"extract\": boolean\n \"cache-map\": string\n \"scratch-dir\": string\n \"skip-extraction\": boolean\n help: boolean\n /** @deprecated Use `cache-map` instead */\n \"cache-source\"?: string\n /** @deprecated Use `cache-map` instead */\n \"cache-target\"?: string\n}\n\nexport function parseOpts(args: string[]): mri.Argv {\n const opts = mri(args, {\n default: {\n \"cache-map\": getInput(\"cache-map\") || \"{}\",\n \"scratch-dir\": getInput(\"scratch-dir\") || \"scratch\",\n \"skip-extraction\": (getInput(\"skip-extraction\") || \"false\") === \"true\",\n \"extract\": process.env[`STATE_POST`] !== undefined,\n \"help\": false,\n },\n string: [\"cache-map\", \"scratch-dir\", \"cache-source\", \"cache-target\"],\n boolean: [\"skip-extraction\", \"help\", \"extract\"],\n alias: {\n \"help\": [\"h\"],\n },\n })\n\n if (opts[\"cache-source\"] && opts[\"cache-target\"]) {\n warning(\"The `cache-source` and `cache-target` options are deprecated. Use `cache-map` instead.\")\n\n opts[\"cache-map\"] = JSON.stringify({\n [opts[\"cache-source\"]]: opts[\"cache-target\"],\n });\n }\n\n return opts;\n}\n\nexport function help() {\n console.log(`build-cache-dance [options]\nSave 'RUN --mount=type=cache' caches on GitHub Actions or other CI platforms\n\nOptions:\n --extract Extract the cache from the docker container (extract step). Otherwise, inject the cache (main step)\n --cache-map The map of actions source paths to container destination paths or mount arguments\n --scratch-dir Where the action is stores some temporary files for its processing. Default: 'scratch'\n --skip-extraction Skip the extraction of the cache from the docker container\n --help Show this help\n`);\n}\n\nexport type SourcePath = string\nexport type TargetPath = string\nexport type ToStringable = {\n toString(): string;\n}\nexport type CacheOptions = TargetPath | { target: TargetPath } & Record\nexport type CacheMap = Record\n\nexport function getCacheMap(opts: Opts): CacheMap {\n try {\n return JSON.parse(opts[\"cache-map\"]) as CacheMap;\n } catch (e) {\n throw new Error(`Failed to parse cache map. Expected JSON, got:\\n${opts[\"cache-map\"]}\\n${e}`);\n }\n}\n\nexport function getTargetPath(cacheOptions: CacheOptions): TargetPath {\n if (typeof cacheOptions === \"string\") {\n // only the target path is provided\n return cacheOptions;\n } else {\n // object is provided\n if (\"target\" in cacheOptions) {\n return cacheOptions.target;\n } else {\n throw new Error(`Expected the 'target' key in the cache options, got:\\n${cacheOptions}`);\n }\n }\n}\n\nexport function getUID(cacheOptions: CacheOptions): string {\n if (typeof cacheOptions === \"string\") {\n // only the target path is provided\n return \"\";\n } else {\n // object is provided\n if (\"uid\" in cacheOptions && cacheOptions.uid !== undefined) {\n return cacheOptions.uid.toString();\n } else {\n return \"\";\n }\n }\n}\n\nexport function getGID(cacheOptions: CacheOptions): string {\n if (typeof cacheOptions === \"string\") {\n // only the target path is provided\n return \"\";\n } else {\n // object is provided\n if (\"gid\" in cacheOptions && cacheOptions.gid !== undefined) {\n return cacheOptions.gid.toString();\n } else {\n return \"\";\n }\n }\n}\n\n/**\n * Convert a cache options to a string that is passed to --mount=\n * @param CacheOptions The cache options to convert to a string\n */\nexport function getMountArgsString(cacheOptions: CacheOptions): string {\n if (typeof cacheOptions === \"string\") {\n // only the target path is provided\n return `type=cache,target=${cacheOptions}`;\n } else {\n // other options are provided\n const otherOptions = Object.entries(cacheOptions).map(([key, value]) => `${key}=${value}`).join(\",\");\n return `type=cache,${otherOptions}`;\n }\n}\n","function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nexport default function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n",null,null,null,null,null,null,null,null,"import spawnPlease from 'spawn-please'\nimport cp, { type ChildProcess } from 'child_process';\n\nexport async function run(command: string, args: string[]) {\n try {\n return await spawnPlease(command, args);\n } catch (error) {\n console.error(`Error running command: ${command} ${args.join(' ')}`);\n throw error;\n }\n}\n\nexport async function runPiped([command1, args1]: [string, string[]], [command2, args2]: [string, string[]]) {\n const cp1 = cp.spawn(command1, args1, { stdio: ['inherit', 'pipe', 'inherit'] });\n const cp2 = cp.spawn(command2, args2, { stdio: ['pipe', 'inherit', 'inherit'] });\n\n cp1.stdout.pipe(cp2.stdin);\n\n await Promise.all([assertSuccess(cp1), assertSuccess(cp2)]);\n}\n\nfunction assertSuccess(cp: ChildProcess) {\n return new Promise((resolve, reject) => {\n cp.on('error', (error) => {\n reject(error);\n });\n cp.on('close', (code) => {\n if (code !== 0) {\n reject(new Error(`process exited with code ${code}`));\n }\n resolve();\n });\n });\n}\n","const spawn = require('cross-spawn')\n\n/** Spawns a child process, as long as you ask nicely.\n * \n * @param {string} command - The shell command to execute.\n * @param {string[]} [args] - An array of arguments that are given after the command.\n * @param {{ rejectOnError?: boolean, stdin?: string, stderr?: (data: string) => void, stdout?: (data: string) => void }} [options] - Options.\n * @param {any} [spawnOptions] - Options that are passed directly to child_process.spawn. Also supports stdin: string.\n * @returns {Promise<{ stdout: string, stderr: string }>}\n */\nconst spawnPlease = (command, args, options={}, spawnOptions={}) => {\n // defaults\n if (options.rejectOnError === undefined) {\n options.rejectOnError = true\n }\n\n let stdout = ''\n let stderr = ''\n const child = spawn(command, args, spawnOptions)\n\n return new Promise((resolve, reject) => {\n if (options.stdin !== undefined && options.stdin != null) {\n child.stdin.write(options.stdin)\n }\n child.stdin.end()\n\n child.stdout.on('data', data => {\n stdout += data\n if (options.stdout) options.stdout(data)\n })\n\n child.stderr.on('data', data => {\n stderr += data\n if (options.stderr) options.stderr(data)\n })\n\n if (options.rejectOnError) {\n child.addListener('error', reject)\n }\n\n child.on('close', code => {\n if (code !== 0 && options.rejectOnError) {\n reject(stderr)\n } else {\n resolve({ stdout, stderr })\n }\n })\n })\n}\n\nmodule.exports = spawnPlease\n","'use strict';\n\nconst cp = require('child_process');\nconst parse = require('./lib/parse');\nconst enoent = require('./lib/enoent');\n\nfunction spawn(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);\n\n // Hook into child process \"exit\" event to emit an error if the command\n // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n enoent.hookChildProcess(spawned, parsed);\n\n return spawned;\n}\n\nfunction spawnSync(command, args, options) {\n // Parse the arguments\n const parsed = parse(command, args, options);\n\n // Spawn the child process\n const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);\n\n // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16\n result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);\n\n return result;\n}\n\nmodule.exports = spawn;\nmodule.exports.spawn = spawn;\nmodule.exports.sync = spawnSync;\n\nmodule.exports._parse = parse;\nmodule.exports._enoent = enoent;\n","'use strict';\n\nconst path = require('path');\nconst resolveCommand = require('./util/resolveCommand');\nconst escape = require('./util/escape');\nconst readShebang = require('./util/readShebang');\n\nconst isWin = process.platform === 'win32';\nconst isExecutableRegExp = /\\.(?:com|exe)$/i;\nconst isCmdShimRegExp = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\nfunction detectShebang(parsed) {\n parsed.file = resolveCommand(parsed);\n\n const shebang = parsed.file && readShebang(parsed.file);\n\n if (shebang) {\n parsed.args.unshift(parsed.file);\n parsed.command = shebang;\n\n return resolveCommand(parsed);\n }\n\n return parsed.file;\n}\n\nfunction parseNonShell(parsed) {\n if (!isWin) {\n return parsed;\n }\n\n // Detect & add support for shebangs\n const commandFile = detectShebang(parsed);\n\n // We don't need a shell if the command filename is an executable\n const needsShell = !isExecutableRegExp.test(commandFile);\n\n // If a shell is required, use cmd.exe and take care of escaping everything correctly\n // Note that `forceShell` is an hidden option used only in tests\n if (parsed.options.forceShell || needsShell) {\n // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`\n // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument\n // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,\n // we need to double escape them\n const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);\n\n // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\\bar)\n // This is necessary otherwise it will always fail with ENOENT in those cases\n parsed.command = path.normalize(parsed.command);\n\n // Escape command & arguments\n parsed.command = escape.command(parsed.command);\n parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));\n\n const shellCommand = [parsed.command].concat(parsed.args).join(' ');\n\n parsed.args = ['/d', '/s', '/c', `\"${shellCommand}\"`];\n parsed.command = process.env.comspec || 'cmd.exe';\n parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped\n }\n\n return parsed;\n}\n\nfunction parse(command, args, options) {\n // Normalize arguments, similar to nodejs\n if (args && !Array.isArray(args)) {\n options = args;\n args = null;\n }\n\n args = args ? args.slice(0) : []; // Clone array to avoid changing the original\n options = Object.assign({}, options); // Clone object to avoid changing the original\n\n // Build our parsed object\n const parsed = {\n command,\n args,\n options,\n file: undefined,\n original: {\n command,\n args,\n },\n };\n\n // Delegate further parsing to shell or non-shell\n return options.shell ? parsed : parseNonShell(parsed);\n}\n\nmodule.exports = parse;\n","'use strict';\n\nconst path = require('path');\nconst which = require('which');\nconst getPathKey = require('path-key');\n\nfunction resolveCommandAttempt(parsed, withoutPathExt) {\n const env = parsed.options.env || process.env;\n const cwd = process.cwd();\n const hasCustomCwd = parsed.options.cwd != null;\n // Worker threads do not have process.chdir()\n const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;\n\n // If a custom `cwd` was specified, we need to change the process cwd\n // because `which` will do stat calls but does not support a custom cwd\n if (shouldSwitchCwd) {\n try {\n process.chdir(parsed.options.cwd);\n } catch (err) {\n /* Empty */\n }\n }\n\n let resolved;\n\n try {\n resolved = which.sync(parsed.command, {\n path: env[getPathKey({ env })],\n pathExt: withoutPathExt ? path.delimiter : undefined,\n });\n } catch (e) {\n /* Empty */\n } finally {\n if (shouldSwitchCwd) {\n process.chdir(cwd);\n }\n }\n\n // If we successfully resolved, ensure that an absolute path is returned\n // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it\n if (resolved) {\n resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);\n }\n\n return resolved;\n}\n\nfunction resolveCommand(parsed) {\n return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);\n}\n\nmodule.exports = resolveCommand;\n","const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n","var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n","'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n","'use strict';\n\n// See http://www.robvanderwoude.com/escapechars.php\nconst metaCharsRegExp = /([()\\][%!^\"`<>&|;, *?])/g;\n\nfunction escapeCommand(arg) {\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n return arg;\n}\n\nfunction escapeArgument(arg, doubleEscapeMetaChars) {\n // Convert to string\n arg = `${arg}`;\n\n // Algorithm below is based on https://qntm.org/cmd\n\n // Sequence of backslashes followed by a double quote:\n // double up all the backslashes and escape the double quote\n arg = arg.replace(/(\\\\*)\"/g, '$1$1\\\\\"');\n\n // Sequence of backslashes followed by the end of the string\n // (which will become a double quote later):\n // double up all the backslashes\n arg = arg.replace(/(\\\\*)$/, '$1$1');\n\n // All other backslashes occur literally\n\n // Quote the whole thing:\n arg = `\"${arg}\"`;\n\n // Escape meta chars\n arg = arg.replace(metaCharsRegExp, '^$1');\n\n // Double escape meta chars if necessary\n if (doubleEscapeMetaChars) {\n arg = arg.replace(metaCharsRegExp, '^$1');\n }\n\n return arg;\n}\n\nmodule.exports.command = escapeCommand;\nmodule.exports.argument = escapeArgument;\n","'use strict';\n\nconst fs = require('fs');\nconst shebangCommand = require('shebang-command');\n\nfunction readShebang(command) {\n // Read the first 150 bytes from the file\n const size = 150;\n const buffer = Buffer.alloc(size);\n\n let fd;\n\n try {\n fd = fs.openSync(command, 'r');\n fs.readSync(fd, buffer, 0, size, 0);\n fs.closeSync(fd);\n } catch (e) { /* Empty */ }\n\n // Attempt to extract shebang (null is returned if not a shebang)\n return shebangCommand(buffer.toString());\n}\n\nmodule.exports = readShebang;\n","'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n","'use strict';\nmodule.exports = /^#!(.*)/;\n","'use strict';\n\nconst isWin = process.platform === 'win32';\n\nfunction notFoundError(original, syscall) {\n return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {\n code: 'ENOENT',\n errno: 'ENOENT',\n syscall: `${syscall} ${original.command}`,\n path: original.command,\n spawnargs: original.args,\n });\n}\n\nfunction hookChildProcess(cp, parsed) {\n if (!isWin) {\n return;\n }\n\n const originalEmit = cp.emit;\n\n cp.emit = function (name, arg1) {\n // If emitting \"exit\" event and exit code is 1, we need to check if\n // the command exists and emit an \"error\" instead\n // See https://github.com/IndigoUnited/node-cross-spawn/issues/16\n if (name === 'exit') {\n const err = verifyENOENT(arg1, parsed, 'spawn');\n\n if (err) {\n return originalEmit.call(cp, 'error', err);\n }\n }\n\n return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params\n };\n}\n\nfunction verifyENOENT(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawn');\n }\n\n return null;\n}\n\nfunction verifyENOENTSync(status, parsed) {\n if (isWin && status === 1 && !parsed.file) {\n return notFoundError(parsed.original, 'spawnSync');\n }\n\n return null;\n}\n\nmodule.exports = {\n hookChildProcess,\n verifyENOENT,\n verifyENOENTSync,\n notFoundError,\n};\n","import fs from 'fs/promises';\nimport path from 'path';\nimport { CacheOptions, Opts, getCacheMap, getMountArgsString, getTargetPath } from './opts.js';\nimport { run, runPiped } from './run.js';\n\nasync function extractCache(cacheSource: string, cacheOptions: CacheOptions, scratchDir: string) {\n // Prepare Timestamp for Layer Cache Busting\n const date = new Date().toISOString();\n \n await fs.mkdir(scratchDir, { recursive: true });\n await fs.writeFile(path.join(scratchDir, 'buildstamp'), date);\n\n // Prepare Dancefile to Access Caches\n const targetPath = getTargetPath(cacheOptions);\n const mountArgs = getMountArgsString(cacheOptions);\n\n const dancefileContent = `\nFROM busybox:1\nCOPY buildstamp buildstamp\nRUN --mount=${mountArgs} \\\n mkdir -p /var/dance-cache/ \\\n && cp -p -R ${targetPath}/. /var/dance-cache/ || true\n`;\n await fs.writeFile(path.join(scratchDir, 'Dancefile.extract'), dancefileContent);\n console.log(dancefileContent);\n\n // Extract Data into Docker Image\n await run('docker', ['buildx', 'build', '-f', path.join(scratchDir, 'Dancefile.extract'), '--tag', 'dance:extract', '--load', scratchDir]);\n\n // Create Extraction Image\n try {\n await run('docker', ['rm', '-f', 'cache-container']);\n } catch (error) {\n // Ignore error if container does not exist\n }\n await run('docker', ['create', '-ti', '--name', 'cache-container', 'dance:extract']);\n\n // Unpack Docker Image into Scratch\n await runPiped(\n ['docker', ['cp', '-L', 'cache-container:/var/dance-cache', '-']],\n ['tar', ['-H', 'posix', '-x', '-C', scratchDir]]\n );\n\n // Move Cache into Its Place\n await fs.rm(cacheSource, { recursive: true, force: true });\n await fs.rename(path.join(scratchDir, 'dance-cache'), cacheSource);\n}\n\nexport async function extractCaches(opts: Opts) {\n if (opts[\"skip-extraction\"]) {\n console.log(\"skip-extraction is set. Skipping extraction step...\");\n return;\n }\n\n const cacheMap = getCacheMap(opts);\n const scratchDir = opts['scratch-dir'];\n\n // Extract Caches for each source-target pair\n for (const [cacheSource, cacheOptions] of Object.entries(cacheMap)) {\n await extractCache(cacheSource, cacheOptions, scratchDir);\n }\n}\n"],"names":[],"version":3,"file":"index.js.map","sourceRoot":"../"} \ No newline at end of file