Regenerate dist

This commit is contained in:
Luc Perkins 2024-05-17 17:59:56 -03:00
parent a0718e6822
commit 73510dc45c
No known key found for this signature in database
GPG key ID: 16DB1108FB591835
2 changed files with 10 additions and 10 deletions

18
dist/index.js generated vendored
View file

@ -94810,7 +94810,7 @@ var MagicNixCacheAction = class {
idsProjectName: "magic-nix-cache-closure", idsProjectName: "magic-nix-cache-closure",
requireNix: "warn" requireNix: "warn"
}); });
this.failMode = inputs_exports.getBool("fail-mode"); this.strictMode = inputs_exports.getBool("strict-mode");
this.client = got_dist_source.extend({ this.client = got_dist_source.extend({
retry: { retry: {
limit: 1, limit: 1,
@ -94959,7 +94959,7 @@ var MagicNixCacheAction = class {
}).catch((err) => { }).catch((err) => {
const msg = `error in notifyPromise: ${err}`; const msg = `error in notifyPromise: ${err}`;
reject(new Error(msg)); reject(new Error(msg));
this.failInFailMode(msg); this.failInStrictMode(msg);
}); });
daemon.on("exit", async (code, signal) => { daemon.on("exit", async (code, signal) => {
let msg; let msg;
@ -94971,7 +94971,7 @@ var MagicNixCacheAction = class {
msg = "Daemon unexpectedly exited"; msg = "Daemon unexpectedly exited";
} }
reject(new Error(msg)); reject(new Error(msg));
this.failInFailMode(msg); this.failInStrictMode(msg);
}); });
}); });
daemon.unref(); daemon.unref();
@ -95002,7 +95002,7 @@ var MagicNixCacheAction = class {
core.info(`Error marking the workflow as started:`); core.info(`Error marking the workflow as started:`);
core.info((0,external_node_util_.inspect)(e)); core.info((0,external_node_util_.inspect)(e));
core.info(`Magic Nix Cache may not be running for this workflow.`); 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() { async tearDownAutoCache() {
@ -95015,7 +95015,7 @@ var MagicNixCacheAction = class {
core.debug(`found daemon pid: ${pid}`); core.debug(`found daemon pid: ${pid}`);
if (!pid) { if (!pid) {
const msg = "magic-nix-cache did not start successfully"; const msg = "magic-nix-cache did not start successfully";
this.failInFailMode(msg); this.failInStrictMode(msg);
throw new Error(msg); throw new Error(msg);
} }
const log = tailLog(this.daemonDir); const log = tailLog(this.daemonDir);
@ -95033,7 +95033,7 @@ var MagicNixCacheAction = class {
process.kill(pid, "SIGTERM"); process.kill(pid, "SIGTERM");
} catch (e) { } catch (e) {
if (typeof e === "object" && e && "code" in e && e.code !== "ESRCH") { if (typeof e === "object" && e && "code" in e && e.code !== "ESRCH") {
this.failInFailMode(e.toString()); this.failInStrictMode(e.toString());
throw e; throw e;
} }
} finally { } finally {
@ -95044,9 +95044,9 @@ var MagicNixCacheAction = class {
} }
} }
} }
failInFailMode(msg) { failInStrictMode(msg) {
if (this.failMode) { if (this.strictMode) {
core.setFailed(`fail-mode error: ${msg}`); core.setFailed(`strict mode error: ${msg}`);
} }
} }
}; };

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long