@tablation/crew 0.130.1 → 0.130.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +5 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2353,6 +2353,7 @@ function storeForgeToken(forges, host, token, stateDir, env = process.env) {
|
|
|
2353
2353
|
if (!i.write) throw new ForgeError(`forges.${host} reads its token from ${i.describe(f.entry.token, { host: f.host, stateDir, env })}, which crew cannot write`);
|
|
2354
2354
|
if (!token.trim()) throw new ForgeError("empty token");
|
|
2355
2355
|
i.write(f.entry.token, token.trim(), { host: f.host, stateDir, env });
|
|
2356
|
+
noteForgeMiss(stateDir, f.host, null);
|
|
2356
2357
|
}
|
|
2357
2358
|
function eraseForgeToken(forges, host, stateDir, env = process.env) {
|
|
2358
2359
|
const f = forgeFor(forges, host);
|
|
@@ -15826,7 +15827,7 @@ function realProvisionDeps(crewHome) {
|
|
|
15826
15827
|
return wrote ? "set" : "kept";
|
|
15827
15828
|
},
|
|
15828
15829
|
storedToken(host) {
|
|
15829
|
-
const res = spawnCrew(["credential", "get"], { input: `protocol=https
|
|
15830
|
+
const res = spawnCrew(["credential", "get", "--no-miss"], { input: `protocol=https
|
|
15830
15831
|
host=${host}
|
|
15831
15832
|
|
|
15832
15833
|
` });
|
|
@@ -19864,11 +19865,11 @@ function formatProjectsReport(report) {
|
|
|
19864
19865
|
|
|
19865
19866
|
// src/forge-cmd.ts
|
|
19866
19867
|
import { parseDocument as parseDocument4 } from "yaml";
|
|
19867
|
-
function runCredential(action, stdin, forges, stateDir, env = process.env) {
|
|
19868
|
+
function runCredential(action, stdin, forges, stateDir, env = process.env, recordMisses = true) {
|
|
19868
19869
|
try {
|
|
19869
19870
|
const input = parseCredentialInput(stdin);
|
|
19870
19871
|
const out = answerCredential(action ?? "", input, forges, stateDir, env);
|
|
19871
|
-
if (action === "get" && input.host && (!input.protocol || input.protocol === "https")) {
|
|
19872
|
+
if (recordMisses && action === "get" && input.host && (!input.protocol || input.protocol === "https")) {
|
|
19872
19873
|
noteForgeMiss(stateDir, input.host, out ? null : (/* @__PURE__ */ new Date()).toISOString());
|
|
19873
19874
|
}
|
|
19874
19875
|
return { code: 0, out, err: "" };
|
|
@@ -26315,7 +26316,7 @@ if (command === "passenger-sync-daemon") {
|
|
|
26315
26316
|
throw e;
|
|
26316
26317
|
}
|
|
26317
26318
|
if (command === "credential") {
|
|
26318
|
-
const r = runCredential(positional[1], readFileSync47(0, "utf8"), cfg.ship.forges, cfg.ship.stateDir);
|
|
26319
|
+
const r = runCredential(positional[1], readFileSync47(0, "utf8"), cfg.ship.forges, cfg.ship.stateDir, process.env, !flag("no-miss"));
|
|
26319
26320
|
process.stdout.write(r.out);
|
|
26320
26321
|
process.stderr.write(r.err);
|
|
26321
26322
|
process.exit(r.code);
|
package/package.json
CHANGED