Skip to content

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

refactor(ci): adjust module boundary check logic

Steven Enamakeld90cdce8004f
diff --git a/scripts/ci/check-module-boundaries.mjs b/scripts/ci/check-module-boundaries.mjs
index 7c215b4eb3..dbf8c9ea8d 100644
--- a/scripts/ci/check-module-boundaries.mjs
+++ b/scripts/ci/check-module-boundaries.mjs
@@ -226,12 +226,13 @@ export function treeGraph(output) {
if (deduplicated) {
if (!id) throw new Error(`Cargo tree references an unseen deduplicated package: ${display}`);
} else {
- if (id) throw new Error(`Cargo tree repeats a package without a dedup marker: ${display}`);
- const pkg = parseTreePackage(display);
- id = `tree:${index}:${display}`;
- packages.set(id, { ...pkg, id });
- nodes.set(id, { id, deps: [] });
- byDisplay.set(display, id);
+ if (!id) {
+ const pkg = parseTreePackage(display);
+ id = `tree:${index}:${display}`;
+ packages.set(id, { ...pkg, id });
+ nodes.set(id, { id, deps: [] });
+ byDisplay.set(display, id);
+ }
}
if (parent) {
nodes.get(parent).deps.push({