diff --git a/go/catalogue/own_manifest_test.go b/go/catalogue/own_manifest_test.go new file mode 100644 index 0000000..f1f7196 --- /dev/null +++ b/go/catalogue/own_manifest_test.go @@ -0,0 +1,29 @@ +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) + } + } +} diff --git a/module.json b/module.json index 404139a..bf74eb7 100644 --- a/module.json +++ b/module.json @@ -4,12 +4,7 @@ "slug": "sdk", "build": { "artifacts": [ - { - "name": "lib", - "kind": "package", - "language": "typescript", - "paths": ["src", "test", "package.json", "package-lock.json", "tsconfig.json"] - } + { "name": "lib", "kind": "package", "language": "typescript" } ] }, "resources": []