From 2f471edc0fcc77f4caacb307a827d868a3e974c7 Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 20 Nov 2026 03:22:22 +0100 Subject: [PATCH] GATE-6, GATE-7: gofmt over the watchdog and its tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The repository's gofmt check refused heads.go, headtools.go and main.go as written; a stale comment of the stalled conditions goes with them. Builds: design 47 H §740, §742 Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy --- modules/mesh-delivery-gate/cmd/mesh-delivery-gate/heads.go | 2 +- .../mesh-delivery-gate/cmd/mesh-delivery-gate/headtools.go | 4 +++- modules/mesh-delivery-gate/cmd/mesh-delivery-gate/main.go | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/heads.go b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/heads.go index 1eaa9656b..7e400fd1d 100644 --- a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/heads.go +++ b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/heads.go @@ -16,8 +16,8 @@ import ( "time" "git.novox.be/novox/mesh-contracts/health-and-repair/go/seats/meshconditions" - "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-forge-bridge/forgemsg" seat "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-contracts/go/seats/meshdelivery" + "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-forge-bridge/forgemsg" stdio "git.novox.be/novox/mesh-sdk/go" "git.novox.be/novox/mesh-sdk/go/keys" ) diff --git a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/headtools.go b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/headtools.go index 9af28caae..3e26a3d01 100644 --- a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/headtools.go +++ b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/headtools.go @@ -53,7 +53,9 @@ func (h *Holder) HeadsHeld() (map[string]any, error) { } lines = append(lines, HeadLine{Repository: repository, Branch: branch, Head: v.Head, Since: timeText(&v.Since), Finding: raised[key]}) } - sort.Slice(lines, func(i, j int) bool { return headKey(lines[i].Repository, lines[i].Branch) < headKey(lines[j].Repository, lines[j].Branch) }) + sort.Slice(lines, func(i, j int) bool { + return headKey(lines[i].Repository, lines[i].Branch) < headKey(lines[j].Repository, lines[j].Branch) + }) return map[string]any{"heads": lines}, nil } diff --git a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/main.go b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/main.go index 62f8c4d8b..3cf879c7c 100644 --- a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/main.go +++ b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/main.go @@ -56,7 +56,6 @@ func main() { Logf: logf, Source: kvSource{}, Owed: seatOwed{say: stdio.SeatPublish}, - // The gate says what stalled to the operator itself (issue 1275, ADR 0437 §9). Heads: kvHeads{}, } h.init()