@feigi/fleet-ctl 3.141.1 → 3.141.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/package.json +1 -1
- package/scripts/label-map.mjs +6 -4
package/package.json
CHANGED
package/scripts/label-map.mjs
CHANGED
|
@@ -583,12 +583,13 @@ export function deriveLabelMap({ table, live, cache, answers = new Map() }) {
|
|
|
583
583
|
return { kind: "certain", roles: certain, origin };
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
-
// The three inputs of a derivation, read the same way for `ensure` and `set
|
|
587
|
-
// the table, the
|
|
588
|
-
//
|
|
586
|
+
// The three inputs of a derivation, read the same way for `ensure` and `set`,
|
|
587
|
+
// in this order: the table, the cache (null when absent or not parsing, which
|
|
588
|
+
// is derived again) and the live label list. A local fault is named before the
|
|
589
|
+
// network is asked, so a `gh` failure cannot hide it and its refusal never
|
|
590
|
+
// waits on `gh`.
|
|
589
591
|
function readDerivationInputs(cwd) {
|
|
590
592
|
const { top, table } = readTriageTable({ cwd });
|
|
591
|
-
const live = readLiveLabels({ cwd: top });
|
|
592
593
|
let cache = null;
|
|
593
594
|
try {
|
|
594
595
|
cache = loadCache(fleetFile(LABEL_MAP_FILE, { cwd }));
|
|
@@ -599,6 +600,7 @@ function readDerivationInputs(cwd) {
|
|
|
599
600
|
// refusal is the reader's own, naming the errno and the repair.
|
|
600
601
|
if (e.cause) throw new LabelMapUnavailable(`${e.message}; nothing written`);
|
|
601
602
|
}
|
|
603
|
+
const live = readLiveLabels({ cwd: top });
|
|
602
604
|
return { top, table, live, cache };
|
|
603
605
|
}
|
|
604
606
|
|