Fix ESM build

This commit is contained in:
Luc Perkins 2024-05-02 17:07:51 -03:00
parent 10f43c0d32
commit 9ffa76fa74
No known key found for this signature in database
GPG key ID: 16DB1108FB591835
4 changed files with 4 additions and 8 deletions

BIN
dist/amd64.tar.gz generated vendored

Binary file not shown.

BIN
dist/arm64.tar.gz generated vendored

Binary file not shown.

7
dist/index.js generated vendored
View file

@ -89417,8 +89417,6 @@ function firstString() {
}
}
// EXTERNAL MODULE: external "path"
var external_path_ = __nccwpck_require__(1017);
// EXTERNAL MODULE: external "node:util"
var external_node_util_ = __nccwpck_require__(7261);
// EXTERNAL MODULE: external "os"
@ -97270,7 +97268,6 @@ function mungeDiagnosticEndpoint(inputUrl) {
var EVENT_INSTALL_NIX_FAILURE = "install_nix_failure";
var EVENT_INSTALL_NIX_START = "install_nix_start";
var EVENT_INSTALL_NIX_SUCCESS = "install_nix_start";
@ -97701,8 +97698,8 @@ ${stderrBuffer}`
"Configuring the Docker shim as the Nix Daemon's process supervisor"
);
const images = {
X64: __nccwpck_require__.ab + "amd64.tar.gz",
ARM64: __nccwpck_require__.ab + "arm64.tar.gz"
X64: (0,external_node_path_namespaceObject.join)(__dirname, "/../docker-shim/amd64.tar.gz"),
ARM64: (0,external_node_path_namespaceObject.join)(__dirname, "/../docker-shim/arm64.tar.gz")
};
const runnerArch = process.env["RUNNER_ARCH"];
let arch;

View file

@ -6,7 +6,6 @@ import { join } from "node:path";
import fs from "node:fs";
import { userInfo } from "node:os";
import stringArgv from "string-argv";
import * as path from "path";
import { IdsToolbox, inputs, platform } from "detsys-ts";
import { randomUUID } from "node:crypto";
@ -559,8 +558,8 @@ class NixInstallerAction {
);
const images: { [key: string]: string } = {
X64: path.join(__dirname, "/../docker-shim/amd64.tar.gz"),
ARM64: path.join(__dirname, "/../docker-shim/arm64.tar.gz"),
X64: join(__dirname, "/../docker-shim/amd64.tar.gz"),
ARM64: join(__dirname, "/../docker-shim/arm64.tar.gz"),
};
const runnerArch = process.env["RUNNER_ARCH"];