@rightkit/release 0.6.80 → 0.6.82
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/acceptance-lines.test.mjs +979 -0
- package/bin/darwin/rightkit-swap.sha256 +1 -0
- package/bin/rightkit-gate.mjs +20 -4
- package/install-app.mjs +20 -1
- package/local-publish.mjs +6 -1
- package/package.json +4 -3
- package/rightkit-registry-resolver.mjs +73 -7
- package/rightkit-versions.json +65 -40
- package/swap-helper-bundle.mjs +16 -0
- package/unit-gate.mjs +4 -2
package/unit-gate.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { readCargoPackage } from "./crate-graph.mjs";
|
|
|
10
10
|
import { spawnSync as nodeSpawnSync } from "./background-process.mjs";
|
|
11
11
|
import { endRun, startRun, stagesTo } from "./gate-stages.mjs";
|
|
12
12
|
import { RIGHTKIT_REPOSITORY, buildDirectOrigin, directStageEvidence, verifyDirectOrigin } from "./direct-origin.mjs";
|
|
13
|
-
import { exclusionsFor } from "./pack-digest.mjs";
|
|
13
|
+
import { SWAP_HELPER_ARCHIVE_BIN, exclusionsFor } from "./pack-digest.mjs";
|
|
14
14
|
import { verifyQualificationReceipts } from "./qualification-verify.mjs";
|
|
15
15
|
import { makeCiCompileProof, verifyCiCompileProof } from "./ci-compile-admission.mjs";
|
|
16
16
|
import { assignJobs, describeCommand, directRowsNotRun, expectedStageCommands } from "./stage-commands.mjs";
|
|
@@ -97,7 +97,9 @@ export function writeQualification({ report, artifact, unit, commit, tree, runti
|
|
|
97
97
|
if (excluded.length && executor?.kind === "direct") {
|
|
98
98
|
// A Linux direct origin neither builds nor signs the swap helper (publish.yml's build-swap/sign-swap do, hosted): its archive holds neither
|
|
99
99
|
// entry, and says so. The Mac rule below is unchanged.
|
|
100
|
-
|
|
100
|
+
// Since 0.6.81 the helper is committed (signed once), so the archive holds it; a signing receipt it must still not hold, and the hosted
|
|
101
|
+
// sign-swap job still binds the helper it publishes.
|
|
102
|
+
if (!Array.isArray(artifact.contentExcluded) || artifact.contentExcluded.some((p) => p !== SWAP_HELPER_ARCHIVE_BIN)) throw new Error(`a direct origin's ${unit.name} archive may hold the committed ${SWAP_HELPER_ARCHIVE_BIN} but no signing receipt (it holds ${(artifact.contentExcluded ?? []).join(", ") || "an unreadable list"})`);
|
|
101
103
|
content.contentExcluded = [];
|
|
102
104
|
} else if (excluded.length) {
|
|
103
105
|
if (!Array.isArray(artifact.contentExcluded) || [...artifact.contentExcluded].sort().join("\n") !== [...excluded].sort().join("\n")) throw new Error(`release needs the qualified ${unit.name} archive to hold ${excluded.join(" and ")}`);
|