Lay out the publishing test's return as every gofmt agrees, so the build seat's check passes
mesh/merge-gate pass: builds mesh-host → ace, g14, novox, shanks; no bus step; every machine composes with the change as it did without (0 of 4 compose)
mesh/repo-check pass: its merge-check.sh passed
mesh/delivery superseded: a newer head of the same pull request

The toolchain the build seat runs merge-check.sh in (Go 1.26) and a newer local Go format a return of
several multi-line composite literals differently; the seat's is the one that judges, and it failed every
pull request on this file (novox/hq issue 283).
This commit is contained in:
jochen
2026-10-07 01:29:06 +02:00
parent 971881d58d
commit ed43d65bf3
+7 -6
View File
@@ -19,16 +19,17 @@ func publishing(t *testing.T, fetch func(string) (int, string, error),
run func(name string, args []string) (string, error)) (Options, Deps, *asked) {
t.Helper()
runtime := &asked{answer: run}
return Options{
Registry: "127.0.0.1:5000",
Timeout: time.Second,
Wait: 0,
}, Deps{
// Each value named before it is returned: a return of several composite literals spanning lines is laid
// out differently by the gofmt of one Go release and the next, and the build seat's is the one that
// judges (novox/hq issue 283).
options := Options{Registry: "127.0.0.1:5000", Timeout: time.Second, Wait: 0}
deps := Deps{
Run: runtime.run,
Fetch: func(_ context.Context, url string) (int, string, error) {
return fetch(url)
},
}, runtime
}
return options, deps, runtime
}
// Nothing has ever been pushed under this name, so the registry says 404 — and that is an answer,