package catalogue import ( "os" "testing" ) // mesh-sdk's own manifest is judged by the controller that runs when it is checked, and that controller reads it // strictly: a manifest word ships one release ahead of its first user. R4e's group is judged by today's controller // (novox/hq ADR 0503 §4), which does not know `paths` (ADR 0499), so mesh-sdk's lib names no paths until a release // after R4e's delivery adds them back (ADR 0499 §6, issue 1758). func TestOwnManifestUsesNoWordTheRunningControllerRefuses(t *testing.T) { raw, err := os.ReadFile("../../module.json") if err != nil { t.Fatal(err) } m, err := ParseManifest(raw) if err != nil { t.Fatalf("mesh-sdk's module.json does not parse: %v", err) } if m.Build == nil || len(m.Build.Artifacts) == 0 { t.Fatal("mesh-sdk's module.json declares no artifact") } for _, a := range m.Build.Artifacts { if a.Paths != nil { t.Errorf("artifact %q names paths %v: the running controller refuses the word until R4e is delivered", a.Name, a.Paths) } } }