Declare the seat verbs the Go package calls on a module's behalf (A-357)
Every module built against the SDK reads its catalog half through mesh-catalog's registrations, revision and entry and mesh-delivery's source; naming them in the Go package's calls lets the indexer order such a module after the running versions that serve its start. Builds: design 47 G lead answer A-357 (the SDK half), §47 kind 6 Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user