mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 05:22:21 +01:00
Merge pull request #83 from DeterminateSystems/fix-esm-build
Fix ESM build
This commit is contained in:
commit
813cf108af
4 changed files with 75 additions and 109 deletions
82
dist/index.js
generated
vendored
82
dist/index.js
generated
vendored
|
@ -71491,7 +71491,7 @@ const {
|
||||||
staticPropertyDescriptors,
|
staticPropertyDescriptors,
|
||||||
readOperation,
|
readOperation,
|
||||||
fireAProgressEvent
|
fireAProgressEvent
|
||||||
} = __nccwpck_require__(2882)
|
} = __nccwpck_require__(5579)
|
||||||
const {
|
const {
|
||||||
kState,
|
kState,
|
||||||
kError,
|
kError,
|
||||||
|
@ -71935,7 +71935,7 @@ module.exports = {
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 2882:
|
/***/ 5579:
|
||||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
|
||||||
|
@ -89417,8 +89417,8 @@ function firstString() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// EXTERNAL MODULE: external "path"
|
// EXTERNAL MODULE: external "node:process"
|
||||||
var external_path_ = __nccwpck_require__(1017);
|
var external_node_process_ = __nccwpck_require__(7742);
|
||||||
// EXTERNAL MODULE: external "node:util"
|
// EXTERNAL MODULE: external "node:util"
|
||||||
var external_node_util_ = __nccwpck_require__(7261);
|
var external_node_util_ = __nccwpck_require__(7261);
|
||||||
// EXTERNAL MODULE: external "os"
|
// EXTERNAL MODULE: external "os"
|
||||||
|
@ -90999,8 +90999,6 @@ class AbortError extends RequestError {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// EXTERNAL MODULE: external "node:process"
|
|
||||||
var external_node_process_ = __nccwpck_require__(7742);
|
|
||||||
;// CONCATENATED MODULE: external "node:buffer"
|
;// CONCATENATED MODULE: external "node:buffer"
|
||||||
const external_node_buffer_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:buffer");
|
const external_node_buffer_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:buffer");
|
||||||
// EXTERNAL MODULE: external "node:stream"
|
// EXTERNAL MODULE: external "node:stream"
|
||||||
|
@ -96378,9 +96376,7 @@ const got = source_create(defaults);
|
||||||
|
|
||||||
;// CONCATENATED MODULE: external "node:stream/promises"
|
;// CONCATENATED MODULE: external "node:stream/promises"
|
||||||
const external_node_stream_promises_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream/promises");
|
const external_node_stream_promises_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream/promises");
|
||||||
;// CONCATENATED MODULE: external "node:zlib"
|
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@cd38b227c4d6faca10aed591b1f8863ef7b93dce_nckxvs7jbq6qb4vr5xhgyxcrgy/node_modules/detsys-ts/dist/index.js
|
||||||
const external_node_zlib_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:zlib");
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/.pnpm/github.com+DeterminateSystems+detsys-ts@2391ba1ef3d22027cd4d9ecce147007a88f63643_is35d24tynybsms6zejuqsabhi/node_modules/detsys-ts/dist/index.js
|
|
||||||
var __defProp = Object.defineProperty;
|
var __defProp = Object.defineProperty;
|
||||||
var __export = (target, all) => {
|
var __export = (target, all) => {
|
||||||
for (var name in all)
|
for (var name in all)
|
||||||
|
@ -96726,30 +96722,22 @@ function getNixPlatform(archOs) {
|
||||||
// src/inputs.ts
|
// src/inputs.ts
|
||||||
var inputs_exports = {};
|
var inputs_exports = {};
|
||||||
__export(inputs_exports, {
|
__export(inputs_exports, {
|
||||||
getArrayOfStrings: () => getArrayOfStrings,
|
|
||||||
getBool: () => getBool,
|
getBool: () => getBool,
|
||||||
|
getCommaSeparatedArrayOfStrings: () => getCommaSeparatedArrayOfStrings,
|
||||||
getMultilineStringOrNull: () => getMultilineStringOrNull,
|
getMultilineStringOrNull: () => getMultilineStringOrNull,
|
||||||
getNumberOrNull: () => getNumberOrNull,
|
getNumberOrNull: () => getNumberOrNull,
|
||||||
getString: () => getString,
|
getString: () => getString,
|
||||||
getStringOrNull: () => getStringOrNull,
|
getStringOrNull: () => getStringOrNull,
|
||||||
getStringOrUndefined: () => getStringOrUndefined,
|
getStringOrUndefined: () => getStringOrUndefined
|
||||||
handleString: () => handleString
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var getBool = (name) => {
|
var getBool = (name) => {
|
||||||
return core.getBooleanInput(name);
|
return core.getBooleanInput(name);
|
||||||
};
|
};
|
||||||
var getArrayOfStrings = (name, separator) => {
|
var getCommaSeparatedArrayOfStrings = (name, stripWhitespace) => {
|
||||||
|
const strip = stripWhitespace ?? false;
|
||||||
const original = getString(name);
|
const original = getString(name);
|
||||||
return handleString(original, separator);
|
return (strip ? original.replace(/\s+/g, "") : original).split(",");
|
||||||
};
|
|
||||||
var handleString = (input, separator) => {
|
|
||||||
const sepChar = separator === "comma" ? "," : /\s+/;
|
|
||||||
const trimmed = input.trim();
|
|
||||||
if (trimmed === "") {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
return trimmed.split(sepChar).map((s) => s.trim());
|
|
||||||
};
|
};
|
||||||
var getMultilineStringOrNull = (name) => {
|
var getMultilineStringOrNull = (name) => {
|
||||||
const value = core.getMultilineInput(name);
|
const value = core.getMultilineInput(name);
|
||||||
|
@ -96830,24 +96818,18 @@ function constructSourceParameters(legacyPrefix) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var DEFAULT_IDS_HOST = "https://install.determinate.systems";
|
var DEFAULT_IDS_HOST = "https://install.determinate.systems";
|
||||||
var IDS_HOST = process.env["IDS_HOST"] ?? DEFAULT_IDS_HOST;
|
var IDS_HOST = process.env["IDS_HOST"] ?? DEFAULT_IDS_HOST;
|
||||||
var EVENT_EXCEPTION = "exception";
|
var EVENT_EXCEPTION = "exception";
|
||||||
var EVENT_ARTIFACT_CACHE_HIT = "artifact_cache_hit";
|
var EVENT_ARTIFACT_CACHE_HIT = "artifact_cache_hit";
|
||||||
var EVENT_ARTIFACT_CACHE_MISS = "artifact_cache_miss";
|
var EVENT_ARTIFACT_CACHE_MISS = "artifact_cache_miss";
|
||||||
var EVENT_ARTIFACT_CACHE_PERSIST = "artifact_cache_persist";
|
|
||||||
var FACT_ENDED_WITH_EXCEPTION = "ended_with_exception";
|
var FACT_ENDED_WITH_EXCEPTION = "ended_with_exception";
|
||||||
var FACT_FINAL_EXCEPTION = "final_exception";
|
var FACT_FINAL_EXCEPTION = "final_exception";
|
||||||
var FACT_SOURCE_URL = "source_url";
|
|
||||||
var FACT_SOURCE_URL_ETAG = "source_url_etag";
|
|
||||||
var IdsToolbox = class {
|
var IdsToolbox = class {
|
||||||
constructor(actionOptions) {
|
constructor(actionOptions) {
|
||||||
this.actionOptions = makeOptionsConfident(actionOptions);
|
this.actionOptions = makeOptionsConfident(actionOptions);
|
||||||
this.hookMain = void 0;
|
this.hookMain = void 0;
|
||||||
this.hookPost = void 0;
|
this.hookPost = void 0;
|
||||||
this.exceptionAttachments = /* @__PURE__ */ new Map();
|
|
||||||
this.events = [];
|
this.events = [];
|
||||||
this.client = got_dist_source.extend({
|
this.client = got_dist_source.extend({
|
||||||
retry: {
|
retry: {
|
||||||
|
@ -96926,17 +96908,6 @@ var IdsToolbox = class {
|
||||||
);
|
);
|
||||||
this.recordEvent(`begin_${this.executionPhase}`);
|
this.recordEvent(`begin_${this.executionPhase}`);
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* Attach a file to the diagnostics data in error conditions.
|
|
||||||
*
|
|
||||||
* The file at `location` doesn't need to exist when stapleFile is called.
|
|
||||||
*
|
|
||||||
* If the file doesn't exist or is unreadable when trying to staple the attachments, the JS error will be stored in a context value at `staple_failure_{name}`.
|
|
||||||
* If the file is readable, the file's contents will be stored in a context value at `staple_value_{name}`.
|
|
||||||
*/
|
|
||||||
stapleFile(name, location) {
|
|
||||||
this.exceptionAttachments.set(name, location);
|
|
||||||
}
|
|
||||||
onMain(callback) {
|
onMain(callback) {
|
||||||
this.hookMain = callback;
|
this.hookMain = callback;
|
||||||
}
|
}
|
||||||
|
@ -96949,9 +96920,6 @@ var IdsToolbox = class {
|
||||||
process.exitCode = 1;
|
process.exitCode = 1;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
stringifyError(error2) {
|
|
||||||
return error2 instanceof Error || typeof error2 == "string" ? error2.toString() : JSON.stringify(error2);
|
|
||||||
}
|
|
||||||
async executeAsync() {
|
async executeAsync() {
|
||||||
try {
|
try {
|
||||||
process.env.DETSYS_CORRELATION = JSON.stringify(
|
process.env.DETSYS_CORRELATION = JSON.stringify(
|
||||||
|
@ -96969,31 +96937,14 @@ var IdsToolbox = class {
|
||||||
this.addFact(FACT_ENDED_WITH_EXCEPTION, false);
|
this.addFact(FACT_ENDED_WITH_EXCEPTION, false);
|
||||||
} catch (error2) {
|
} catch (error2) {
|
||||||
this.addFact(FACT_ENDED_WITH_EXCEPTION, true);
|
this.addFact(FACT_ENDED_WITH_EXCEPTION, true);
|
||||||
const reportable = this.stringifyError(error2);
|
const reportable = error2 instanceof Error || typeof error2 == "string" ? error2.toString() : JSON.stringify(error2);
|
||||||
this.addFact(FACT_FINAL_EXCEPTION, reportable);
|
this.addFact(FACT_FINAL_EXCEPTION, reportable);
|
||||||
if (this.executionPhase === "post") {
|
if (this.executionPhase === "post") {
|
||||||
core.warning(reportable);
|
core.warning(reportable);
|
||||||
} else {
|
} else {
|
||||||
core.setFailed(reportable);
|
core.setFailed(reportable);
|
||||||
}
|
}
|
||||||
const do_gzip = (0,external_node_util_.promisify)(external_node_zlib_namespaceObject.gzip);
|
this.recordEvent(EVENT_EXCEPTION);
|
||||||
const exceptionContext = /* @__PURE__ */ new Map();
|
|
||||||
for (const [attachmentLabel, filePath] of this.exceptionAttachments) {
|
|
||||||
try {
|
|
||||||
const logText = (0,external_node_fs_namespaceObject.readFileSync)(filePath);
|
|
||||||
const buf = await do_gzip(logText);
|
|
||||||
exceptionContext.set(
|
|
||||||
`staple_value_${attachmentLabel}`,
|
|
||||||
buf.toString("base64")
|
|
||||||
);
|
|
||||||
} catch (e) {
|
|
||||||
exceptionContext.set(
|
|
||||||
`staple_failure_${attachmentLabel}`,
|
|
||||||
this.stringifyError(e)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.recordEvent(EVENT_EXCEPTION, Object.fromEntries(exceptionContext));
|
|
||||||
} finally {
|
} finally {
|
||||||
await this.complete();
|
await this.complete();
|
||||||
}
|
}
|
||||||
|
@ -97035,7 +96986,6 @@ var IdsToolbox = class {
|
||||||
const versionCheckup = await this.client.head(correlatedUrl);
|
const versionCheckup = await this.client.head(correlatedUrl);
|
||||||
if (versionCheckup.headers.etag) {
|
if (versionCheckup.headers.etag) {
|
||||||
const v = versionCheckup.headers.etag;
|
const v = versionCheckup.headers.etag;
|
||||||
this.addFact(FACT_SOURCE_URL_ETAG, v);
|
|
||||||
core.debug(
|
core.debug(
|
||||||
`Checking the tool cache for ${this.getUrl()} at ${v}`
|
`Checking the tool cache for ${this.getUrl()} at ${v}`
|
||||||
);
|
);
|
||||||
|
@ -97084,7 +97034,6 @@ var IdsToolbox = class {
|
||||||
getUrl() {
|
getUrl() {
|
||||||
const p = this.sourceParameters;
|
const p = this.sourceParameters;
|
||||||
if (p.url) {
|
if (p.url) {
|
||||||
this.addFact(FACT_SOURCE_URL, p.url);
|
|
||||||
return new URL(p.url);
|
return new URL(p.url);
|
||||||
}
|
}
|
||||||
const fetchUrl = new URL(IDS_HOST);
|
const fetchUrl = new URL(IDS_HOST);
|
||||||
|
@ -97101,7 +97050,6 @@ var IdsToolbox = class {
|
||||||
fetchUrl.pathname += `/stable`;
|
fetchUrl.pathname += `/stable`;
|
||||||
}
|
}
|
||||||
fetchUrl.pathname += `/${this.architectureFetchSuffix}`;
|
fetchUrl.pathname += `/${this.architectureFetchSuffix}`;
|
||||||
this.addFact(FACT_SOURCE_URL, fetchUrl.toString());
|
|
||||||
return fetchUrl;
|
return fetchUrl;
|
||||||
}
|
}
|
||||||
cacheKey(version2) {
|
cacheKey(version2) {
|
||||||
|
@ -97149,7 +97097,7 @@ var IdsToolbox = class {
|
||||||
void 0,
|
void 0,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
this.recordEvent(EVENT_ARTIFACT_CACHE_PERSIST);
|
this.recordEvent(EVENT_ARTIFACT_CACHE_HIT);
|
||||||
} finally {
|
} finally {
|
||||||
process.env.GITHUB_WORKSPACE = process.env.GITHUB_WORKSPACE_BACKUP;
|
process.env.GITHUB_WORKSPACE = process.env.GITHUB_WORKSPACE_BACKUP;
|
||||||
delete process.env.GITHUB_WORKSPACE_BACKUP;
|
delete process.env.GITHUB_WORKSPACE_BACKUP;
|
||||||
|
@ -97751,8 +97699,8 @@ ${stderrBuffer}`
|
||||||
"Configuring the Docker shim as the Nix Daemon's process supervisor"
|
"Configuring the Docker shim as the Nix Daemon's process supervisor"
|
||||||
);
|
);
|
||||||
const images = {
|
const images = {
|
||||||
X64: __nccwpck_require__.ab + "amd64.tar.gz",
|
X64: (0,external_node_path_namespaceObject.join)((0,external_node_process_.cwd)(), "/../docker-shim/amd64.tar.gz"),
|
||||||
ARM64: __nccwpck_require__.ab + "arm64.tar.gz"
|
ARM64: (0,external_node_path_namespaceObject.join)((0,external_node_process_.cwd)(), "/../docker-shim/arm64.tar.gz")
|
||||||
};
|
};
|
||||||
const runnerArch = process.env["RUNNER_ARCH"];
|
const runnerArch = process.env["RUNNER_ARCH"];
|
||||||
let arch;
|
let arch;
|
||||||
|
|
|
@ -16,7 +16,7 @@ dependencies:
|
||||||
version: 5.1.1
|
version: 5.1.1
|
||||||
detsys-ts:
|
detsys-ts:
|
||||||
specifier: github:DeterminateSystems/detsys-ts
|
specifier: github:DeterminateSystems/detsys-ts
|
||||||
version: github.com/DeterminateSystems/detsys-ts/2391ba1ef3d22027cd4d9ecce147007a88f63643
|
version: github.com/DeterminateSystems/detsys-ts/cd38b227c4d6faca10aed591b1f8863ef7b93dce
|
||||||
string-argv:
|
string-argv:
|
||||||
specifier: ^0.3.2
|
specifier: ^0.3.2
|
||||||
version: 0.3.2
|
version: 0.3.2
|
||||||
|
@ -27,7 +27,7 @@ devDependencies:
|
||||||
version: 4.3.0(prettier@3.2.5)
|
version: 4.3.0(prettier@3.2.5)
|
||||||
"@types/node":
|
"@types/node":
|
||||||
specifier: ^20.12.11
|
specifier: ^20.12.11
|
||||||
version: 20.12.11
|
version: 20.12.12
|
||||||
"@types/uuid":
|
"@types/uuid":
|
||||||
specifier: ^9.0.8
|
specifier: ^9.0.8
|
||||||
version: 9.0.8
|
version: 9.0.8
|
||||||
|
@ -1327,14 +1327,14 @@ packages:
|
||||||
integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==,
|
integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==,
|
||||||
}
|
}
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/node": 20.12.11
|
"@types/node": 20.12.12
|
||||||
form-data: 4.0.0
|
form-data: 4.0.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@types/node@20.12.11:
|
/@types/node@20.12.12:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==,
|
integrity: sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==,
|
||||||
}
|
}
|
||||||
dependencies:
|
dependencies:
|
||||||
undici-types: 5.26.5
|
undici-types: 5.26.5
|
||||||
|
@ -1352,7 +1352,7 @@ packages:
|
||||||
integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==,
|
integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==,
|
||||||
}
|
}
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/node": 20.12.11
|
"@types/node": 20.12.12
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@types/uuid@9.0.8:
|
/@types/uuid@9.0.8:
|
||||||
|
@ -1387,7 +1387,7 @@ packages:
|
||||||
graphemer: 1.4.0
|
graphemer: 1.4.0
|
||||||
ignore: 5.3.1
|
ignore: 5.3.1
|
||||||
natural-compare: 1.4.0
|
natural-compare: 1.4.0
|
||||||
semver: 7.6.2
|
semver: 7.6.0
|
||||||
ts-api-utils: 1.3.0(typescript@5.4.5)
|
ts-api-utils: 1.3.0(typescript@5.4.5)
|
||||||
typescript: 5.4.5
|
typescript: 5.4.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
@ -1478,7 +1478,7 @@ packages:
|
||||||
globby: 11.1.0
|
globby: 11.1.0
|
||||||
is-glob: 4.0.3
|
is-glob: 4.0.3
|
||||||
minimatch: 9.0.4
|
minimatch: 9.0.4
|
||||||
semver: 7.6.2
|
semver: 7.6.0
|
||||||
ts-api-utils: 1.3.0(typescript@5.4.5)
|
ts-api-utils: 1.3.0(typescript@5.4.5)
|
||||||
typescript: 5.4.5
|
typescript: 5.4.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
@ -1501,7 +1501,7 @@ packages:
|
||||||
"@typescript-eslint/types": 7.8.0
|
"@typescript-eslint/types": 7.8.0
|
||||||
"@typescript-eslint/typescript-estree": 7.8.0(typescript@5.4.5)
|
"@typescript-eslint/typescript-estree": 7.8.0(typescript@5.4.5)
|
||||||
eslint: 8.57.0
|
eslint: 8.57.0
|
||||||
semver: 7.6.2
|
semver: 7.6.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
- typescript
|
- typescript
|
||||||
|
@ -1843,10 +1843,10 @@ packages:
|
||||||
engines: { node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7 }
|
engines: { node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7 }
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
caniuse-lite: 1.0.30001617
|
caniuse-lite: 1.0.30001615
|
||||||
electron-to-chromium: 1.4.761
|
electron-to-chromium: 1.4.755
|
||||||
node-releases: 2.0.14
|
node-releases: 2.0.14
|
||||||
update-browserslist-db: 1.0.15(browserslist@4.23.0)
|
update-browserslist-db: 1.0.14(browserslist@4.23.0)
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/bundle-require@4.1.0(esbuild@0.19.12):
|
/bundle-require@4.1.0(esbuild@0.19.12):
|
||||||
|
@ -1916,10 +1916,10 @@ packages:
|
||||||
engines: { node: ">=6" }
|
engines: { node: ">=6" }
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/caniuse-lite@1.0.30001617:
|
/caniuse-lite@1.0.30001615:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-mLyjzNI9I+Pix8zwcrpxEbGlfqOkF9kM3ptzmKNw5tizSyYwMe+nGLTqMK9cO+0E+Bh6TsBxNAaHWEM8xwSsmA==,
|
integrity: sha512-1IpazM5G3r38meiae0bHRnPhz+CBQ3ZLqbQMtrg+AsTPKAXgW38JNsXkyZ+v8waCsDmPq87lmfun5Q2AGysNEQ==,
|
||||||
}
|
}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
@ -2214,10 +2214,10 @@ packages:
|
||||||
}
|
}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/electron-to-chromium@1.4.761:
|
/electron-to-chromium@1.4.755:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-PIbxpiJGx6Bb8dQaonNc6CGTRlVntdLg/2nMa1YhnrwYOORY9a3ZgGN0UQYE6lAcj/lkyduJN7BPt/JiY+jAQQ==,
|
integrity: sha512-9nop+3jZxSHIxe1EzEUcjDXzK+3qOv3fY5w0sE88nIZUntbv1aXWmoxGWlklX5XSO4txCpLssWkUSh8RQPovBg==,
|
||||||
}
|
}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
@ -2235,10 +2235,10 @@ packages:
|
||||||
}
|
}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/enhanced-resolve@5.16.1:
|
/enhanced-resolve@5.16.0:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-4U5pNsuDl0EhuZpq46M5xPslstkviJuhrdobaRDBk2Jy2KO37FDAJl4lb2KlNabxT0m4MTK2UHNrsAcphE8nyw==,
|
integrity: sha512-O+QWCviPNSSLAD9Ucn8Awv+poAkqn3T1XY5/N7kR7rQO9yfSGWkYZDwpJ+iKF7B8rxaQKWngSqACpgzeapSyoA==,
|
||||||
}
|
}
|
||||||
engines: { node: ">=10.13.0" }
|
engines: { node: ">=10.13.0" }
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -2479,12 +2479,12 @@ packages:
|
||||||
eslint-plugin-import: "*"
|
eslint-plugin-import: "*"
|
||||||
dependencies:
|
dependencies:
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
enhanced-resolve: 5.16.1
|
enhanced-resolve: 5.16.0
|
||||||
eslint: 8.57.0
|
eslint: 8.57.0
|
||||||
eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.8.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0)
|
eslint-module-utils: 2.8.1(@typescript-eslint/parser@7.8.0)(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0)
|
||||||
eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.8.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0)
|
eslint-plugin-import: 2.29.1(@typescript-eslint/parser@7.8.0)(eslint-import-resolver-typescript@3.6.1)(eslint@8.57.0)
|
||||||
fast-glob: 3.3.2
|
fast-glob: 3.3.2
|
||||||
get-tsconfig: 4.7.5
|
get-tsconfig: 4.7.3
|
||||||
is-core-module: 2.13.1
|
is-core-module: 2.13.1
|
||||||
is-glob: 4.0.3
|
is-glob: 4.0.3
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
@ -3110,10 +3110,10 @@ packages:
|
||||||
get-intrinsic: 1.2.4
|
get-intrinsic: 1.2.4
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/get-tsconfig@4.7.5:
|
/get-tsconfig@4.7.3:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-ZCuZCnlqNzjb4QprAzXKdpp/gh6KTxSJuw3IBsPnV/7fV4NxC9ckB+vPTt8w7fJA0TaSD7c55BR47JD6MEDyDw==,
|
integrity: sha512-ZvkrzoUA0PQZM6fy6+/Hce561s+faD1rsNwhnO5FelNjyy7EMGJ3Rz1AQ8GYDWjhRs/7dBLOEJvhK8MiEJOAFg==,
|
||||||
}
|
}
|
||||||
dependencies:
|
dependencies:
|
||||||
resolve-pkg-maps: 1.0.0
|
resolve-pkg-maps: 1.0.0
|
||||||
|
@ -3139,10 +3139,10 @@ packages:
|
||||||
is-glob: 4.0.3
|
is-glob: 4.0.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/glob@10.3.14:
|
/glob@10.3.12:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-4fkAqu93xe9Mk7le9v0y3VrPDqLKHarNi2s4Pv7f2yOvfhWfhc7hRPHC/JyqMqb8B/Dt/eGS4n7ykwf3fOsl8g==,
|
integrity: sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==,
|
||||||
}
|
}
|
||||||
engines: { node: ">=16 || 14 >=14.17" }
|
engines: { node: ">=16 || 14 >=14.17" }
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
@ -3150,8 +3150,8 @@ packages:
|
||||||
foreground-child: 3.1.1
|
foreground-child: 3.1.1
|
||||||
jackspeak: 2.3.6
|
jackspeak: 2.3.6
|
||||||
minimatch: 9.0.4
|
minimatch: 9.0.4
|
||||||
minipass: 7.1.1
|
minipass: 7.0.4
|
||||||
path-scurry: 1.11.0
|
path-scurry: 1.10.2
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/glob@7.2.3:
|
/glob@7.2.3:
|
||||||
|
@ -3940,6 +3940,16 @@ packages:
|
||||||
engines: { node: 14 || >=16.14 }
|
engines: { node: 14 || >=16.14 }
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/lru-cache@6.0.0:
|
||||||
|
resolution:
|
||||||
|
{
|
||||||
|
integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==,
|
||||||
|
}
|
||||||
|
engines: { node: ">=10" }
|
||||||
|
dependencies:
|
||||||
|
yallist: 4.0.0
|
||||||
|
dev: true
|
||||||
|
|
||||||
/merge-stream@2.0.0:
|
/merge-stream@2.0.0:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
|
@ -4033,10 +4043,10 @@ packages:
|
||||||
}
|
}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/minipass@7.1.1:
|
/minipass@7.0.4:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==,
|
integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==,
|
||||||
}
|
}
|
||||||
engines: { node: ">=16 || 14 >=14.17" }
|
engines: { node: ">=16 || 14 >=14.17" }
|
||||||
dev: true
|
dev: true
|
||||||
|
@ -4308,15 +4318,15 @@ packages:
|
||||||
}
|
}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/path-scurry@1.11.0:
|
/path-scurry@1.10.2:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-LNHTaVkzaYaLGlO+0u3rQTz7QrHTFOuKyba9JMTQutkmtNew8dw8wOD7mTU/5fCPZzCWpfW0XnQKzY61P0aTaw==,
|
integrity: sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==,
|
||||||
}
|
}
|
||||||
engines: { node: ">=16 || 14 >=14.17" }
|
engines: { node: ">=16 || 14 >=14.17" }
|
||||||
dependencies:
|
dependencies:
|
||||||
lru-cache: 10.2.2
|
lru-cache: 10.2.2
|
||||||
minipass: 7.1.1
|
minipass: 7.0.4
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/path-type@4.0.0:
|
/path-type@4.0.0:
|
||||||
|
@ -4628,13 +4638,15 @@ packages:
|
||||||
}
|
}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
/semver@7.6.2:
|
/semver@7.6.0:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==,
|
integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==,
|
||||||
}
|
}
|
||||||
engines: { node: ">=10" }
|
engines: { node: ">=10" }
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
dependencies:
|
||||||
|
lru-cache: 6.0.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/set-function-length@1.2.2:
|
/set-function-length@1.2.2:
|
||||||
|
@ -4859,7 +4871,7 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
"@jridgewell/gen-mapping": 0.3.5
|
"@jridgewell/gen-mapping": 0.3.5
|
||||||
commander: 4.1.1
|
commander: 4.1.1
|
||||||
glob: 10.3.14
|
glob: 10.3.12
|
||||||
lines-and-columns: 1.2.4
|
lines-and-columns: 1.2.4
|
||||||
mz: 2.7.0
|
mz: 2.7.0
|
||||||
pirates: 4.0.6
|
pirates: 4.0.6
|
||||||
|
@ -5200,10 +5212,10 @@ packages:
|
||||||
}
|
}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/update-browserslist-db@1.0.15(browserslist@4.23.0):
|
/update-browserslist-db@1.0.14(browserslist@4.23.0):
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-K9HWH62x3/EalU1U6sjSZiylm9C8tgq2mSvshZpqc7QE69RaA2qjhkW2HlNA0tFpEbtyFz7HTqbSdN4MSwUodA==,
|
integrity: sha512-JixKH8GR2pWYshIPUg/NujK3JO7JiqEEUiNArE86NQyrgUuZeTlZQN3xuS/yiV5Kb48ev9K6RqNkaJjXsdg7Jw==,
|
||||||
}
|
}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -5404,6 +5416,13 @@ packages:
|
||||||
engines: { node: ">=4.0" }
|
engines: { node: ">=4.0" }
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
|
/yallist@4.0.0:
|
||||||
|
resolution:
|
||||||
|
{
|
||||||
|
integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==,
|
||||||
|
}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/yaml@2.4.2:
|
/yaml@2.4.2:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
|
@ -5421,10 +5440,10 @@ packages:
|
||||||
engines: { node: ">=10" }
|
engines: { node: ">=10" }
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
github.com/DeterminateSystems/detsys-ts/2391ba1ef3d22027cd4d9ecce147007a88f63643:
|
github.com/DeterminateSystems/detsys-ts/cd38b227c4d6faca10aed591b1f8863ef7b93dce:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
tarball: https://codeload.github.com/DeterminateSystems/detsys-ts/tar.gz/2391ba1ef3d22027cd4d9ecce147007a88f63643,
|
tarball: https://codeload.github.com/DeterminateSystems/detsys-ts/tar.gz/cd38b227c4d6faca10aed591b1f8863ef7b93dce,
|
||||||
}
|
}
|
||||||
name: detsys-ts
|
name: detsys-ts
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { join } from "node:path";
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import { userInfo } from "node:os";
|
import { userInfo } from "node:os";
|
||||||
import stringArgv from "string-argv";
|
import stringArgv from "string-argv";
|
||||||
import * as path from "path";
|
import { cwd } from "node:process";
|
||||||
import { IdsToolbox, inputs, platform } from "detsys-ts";
|
import { IdsToolbox, inputs, platform } from "detsys-ts";
|
||||||
import { randomUUID } from "node:crypto";
|
import { randomUUID } from "node:crypto";
|
||||||
|
|
||||||
|
@ -559,8 +559,8 @@ class NixInstallerAction {
|
||||||
);
|
);
|
||||||
|
|
||||||
const images: { [key: string]: string } = {
|
const images: { [key: string]: string } = {
|
||||||
X64: path.join(__dirname, "/../docker-shim/amd64.tar.gz"),
|
X64: join(cwd(), "/../docker-shim/amd64.tar.gz"),
|
||||||
ARM64: path.join(__dirname, "/../docker-shim/arm64.tar.gz"),
|
ARM64: join(cwd(), "/../docker-shim/arm64.tar.gz"),
|
||||||
};
|
};
|
||||||
|
|
||||||
const runnerArch = process.env["RUNNER_ARCH"];
|
const runnerArch = process.env["RUNNER_ARCH"];
|
||||||
|
|
|
@ -8,7 +8,6 @@ export default defineConfig({
|
||||||
target: "node20",
|
target: "node20",
|
||||||
bundle: true,
|
bundle: true,
|
||||||
splitting: false,
|
splitting: false,
|
||||||
clean: true,
|
|
||||||
dts: {
|
dts: {
|
||||||
resolve: true,
|
resolve: true,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue