mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-26 01:12:17 +01:00
Regenerate dist
This commit is contained in:
parent
a0718e6822
commit
73510dc45c
2 changed files with 10 additions and 10 deletions
18
dist/index.js
generated
vendored
18
dist/index.js
generated
vendored
|
@ -94810,7 +94810,7 @@ var MagicNixCacheAction = class {
|
|||
idsProjectName: "magic-nix-cache-closure",
|
||||
requireNix: "warn"
|
||||
});
|
||||
this.failMode = inputs_exports.getBool("fail-mode");
|
||||
this.strictMode = inputs_exports.getBool("strict-mode");
|
||||
this.client = got_dist_source.extend({
|
||||
retry: {
|
||||
limit: 1,
|
||||
|
@ -94959,7 +94959,7 @@ var MagicNixCacheAction = class {
|
|||
}).catch((err) => {
|
||||
const msg = `error in notifyPromise: ${err}`;
|
||||
reject(new Error(msg));
|
||||
this.failInFailMode(msg);
|
||||
this.failInStrictMode(msg);
|
||||
});
|
||||
daemon.on("exit", async (code, signal) => {
|
||||
let msg;
|
||||
|
@ -94971,7 +94971,7 @@ var MagicNixCacheAction = class {
|
|||
msg = "Daemon unexpectedly exited";
|
||||
}
|
||||
reject(new Error(msg));
|
||||
this.failInFailMode(msg);
|
||||
this.failInStrictMode(msg);
|
||||
});
|
||||
});
|
||||
daemon.unref();
|
||||
|
@ -95002,7 +95002,7 @@ var MagicNixCacheAction = class {
|
|||
core.info(`Error marking the workflow as started:`);
|
||||
core.info((0,external_node_util_.inspect)(e));
|
||||
core.info(`Magic Nix Cache may not be running for this workflow.`);
|
||||
this.failInFailMode(`Magic Nix Cache failed to start: ${(0,external_node_util_.inspect)(e)}`);
|
||||
this.failInStrictMode(`Magic Nix Cache failed to start: ${(0,external_node_util_.inspect)(e)}`);
|
||||
}
|
||||
}
|
||||
async tearDownAutoCache() {
|
||||
|
@ -95015,7 +95015,7 @@ var MagicNixCacheAction = class {
|
|||
core.debug(`found daemon pid: ${pid}`);
|
||||
if (!pid) {
|
||||
const msg = "magic-nix-cache did not start successfully";
|
||||
this.failInFailMode(msg);
|
||||
this.failInStrictMode(msg);
|
||||
throw new Error(msg);
|
||||
}
|
||||
const log = tailLog(this.daemonDir);
|
||||
|
@ -95033,7 +95033,7 @@ var MagicNixCacheAction = class {
|
|||
process.kill(pid, "SIGTERM");
|
||||
} catch (e) {
|
||||
if (typeof e === "object" && e && "code" in e && e.code !== "ESRCH") {
|
||||
this.failInFailMode(e.toString());
|
||||
this.failInStrictMode(e.toString());
|
||||
throw e;
|
||||
}
|
||||
} finally {
|
||||
|
@ -95044,9 +95044,9 @@ var MagicNixCacheAction = class {
|
|||
}
|
||||
}
|
||||
}
|
||||
failInFailMode(msg) {
|
||||
if (this.failMode) {
|
||||
core.setFailed(`fail-mode error: ${msg}`);
|
||||
failInStrictMode(msg) {
|
||||
if (this.strictMode) {
|
||||
core.setFailed(`strict mode error: ${msg}`);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue