Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(release-and-repin): pass correct args to monotonic check

Steven Enamakel38c2cd1b1b71
diff --git a/scripts/modules/release-and-repin.mjs b/scripts/modules/release-and-repin.mjs
index 9bcb038b9e..f4277ca5a0 100644
--- a/scripts/modules/release-and-repin.mjs
+++ b/scripts/modules/release-and-repin.mjs
@@ -200,10 +200,14 @@ export async function repin(opts, deps = {}) {
}
}
- const checks = ["check-module-pins.mjs", "check-submodule-monotonic.mjs"];
+ // The monotonic gate takes a base ref (default origin/main), not a root.
+ const checks = [
+ ["check-module-pins.mjs", [root]],
+ ["check-submodule-monotonic.mjs", []],
+ ];
const failed = [];
- for (const script of checks) {
- const res = run("node", [join("scripts/ci", script), root], { cwd: root });
+ for (const [script, args] of checks) {
+ const res = run("node", [join("scripts/ci", script), ...args], { cwd: root });
log(`${script}: ${res.code === 0 ? "ok" : "FAILED"}`);
if (res.code !== 0) {
failed.push(script);