Beds read the catalogue: one loader, eight beds converted, the rest declared (hq issue 073) #41
@@ -255,7 +255,9 @@ export function catalogueDir(): string {
|
||||
? [resolve(named, "modules"), resolve(named)]
|
||||
: [resolve(process.cwd(), "..", "mesh-catalog", "modules")];
|
||||
for (const dir of candidates) {
|
||||
if (existsSync(resolve(dir, "mesh-controller", "module.json"))) return dir;
|
||||
// Known by the registry's manifest, which genesis reads from the catalogue and always will —
|
||||
// not the control plane's, which lives in the control plane's own repository (ADR 0069).
|
||||
if (existsSync(resolve(dir, "distribution", "module.json"))) return dir;
|
||||
}
|
||||
throw new Error(
|
||||
`no catalogue: MESH_LAB_CATALOG=${named ?? "(unset)"} and nothing at ${candidates.join(", ")}`);
|
||||
|
||||
Reference in New Issue
Block a user