diff --git a/go/catalogue/own_manifest_test.go b/go/catalogue/own_manifest_test.go index 7f36326e..5c86bd0b 100644 --- a/go/catalogue/own_manifest_test.go +++ b/go/catalogue/own_manifest_test.go @@ -35,6 +35,13 @@ func TestOwnManifestUsesNoWordTheRunningControllerRefuses(t *testing.T) { if g := packages["go"]; g.Name != "go" || !slices.Equal(g.Paths, []string{"go"}) { t.Errorf("mesh-sdk's Go package is %+v, want go built from go", g) } + // The seat verbs its code calls on a module's behalf, in the invokes form, so the indexer orders every module built + // against it after the running versions that serve its start (design 47 G lead answer A-357). + for _, verb := range []string{"seat:mesh-catalog.registrations", "seat:mesh-catalog.revision", "seat:mesh-catalog.entry", "seat:mesh-delivery.source"} { + if !slices.Contains(packages["go"].Calls, verb) { + t.Errorf("mesh-sdk's Go package calls %v, want %s among them", packages["go"].Calls, verb) + } + } // Its named paths, so the indexer holds them and a change to them is a changed package (design 47 G A-285). if l := packages["typescript"]; l.Name != "lib" || !slices.Equal(l.Paths, []string{"package.json", "package-lock.json", "tsconfig.json", "src"}) { t.Errorf("mesh-sdk's TypeScript package is %+v, want lib built from package.json, package-lock.json, tsconfig.json and src", l) diff --git a/module.json b/module.json index 9e8144b0..e56b2236 100644 --- a/module.json +++ b/module.json @@ -5,7 +5,8 @@ "build": { "artifacts": [ { "name": "lib", "kind": "package", "language": "typescript", "paths": ["package.json", "package-lock.json", "tsconfig.json", "src"], "calls": ["finding-calls"] }, - { "name": "go", "kind": "package", "language": "go", "paths": ["go"], "calls": ["finding-calls", "ledger-upkeep-calls", "put-sessions", "sent-objects-calls"] } + { "name": "go", "kind": "package", "language": "go", "paths": ["go"], "calls": ["finding-calls", "ledger-upkeep-calls", "put-sessions", "sent-objects-calls", + "seat:mesh-catalog.registrations", "seat:mesh-catalog.revision", "seat:mesh-catalog.entry", "seat:mesh-delivery.source"] } ] }, "resources": []