From 3c2239802d43f5b60c3ddc76ebe6a3ef4de4b9a4 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 12 Nov 2026 01:03:05 +0100 Subject: [PATCH] Fix 9.6a: wireguard's Go Manifest() says version 0.1 as module.json does; route-proxy's pinned manifest digest follows the version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Builds: design 47 G A-46, §368, §411 Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h --- modules/mesh-wireguard/go/overlay/overlay.go | 2 +- modules/route-proxy/cmd/route-provider/provider_test.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/mesh-wireguard/go/overlay/overlay.go b/modules/mesh-wireguard/go/overlay/overlay.go index 70aaaf2..97de2ce 100644 --- a/modules/mesh-wireguard/go/overlay/overlay.go +++ b/modules/mesh-wireguard/go/overlay/overlay.go @@ -63,7 +63,7 @@ const TheNetwork = theprivatenetwork.Seat func Manifest() map[string]any { return map[string]any{ "module": Name, - "version": "1", + "version": "0.1", "computed": Name, // A provision says its credential's form (the manifest validator, DLV credential forms): the network and the // addresses are used with no login of a consumer's own. diff --git a/modules/route-proxy/cmd/route-provider/provider_test.go b/modules/route-proxy/cmd/route-provider/provider_test.go index 9f261ce..9289486 100644 --- a/modules/route-proxy/cmd/route-provider/provider_test.go +++ b/modules/route-proxy/cmd/route-provider/provider_test.go @@ -130,13 +130,14 @@ func TestRouteProxyIsNotMovedAndKeepsItsOwnFiles(t *testing.T) { for _, k := range []string{"build", "provides", "state", "reads", "tools", "replaces"} { delete(m, k) } - // Refreshed on purpose for the events its contract names (`emits`: route.served, route.withdrawn, route.refused). + // Refreshed on purpose for the events its contract names (`emits`: route.served, route.withdrawn, route.refused), and for the + // version MAJOR.MINOR every manifest of the repository says (design 47 G A-46, §368). pinned, err := json.Marshal(m) // sorted keys, compact if err != nil { t.Fatal(err) } sum := sha256.Sum256(pinned) - if got := hex.EncodeToString(sum[:]); got != "3a44c56cc021be4008f521d16fa02e1c0f0d2eedab2f4d0b60f7d3177269e542" { + if got := hex.EncodeToString(sum[:]); got != "8bb092cb28ee62b01a511293b3b639929e4d754a86a277b1deb52d36be0af4b6" { t.Fatalf("route-proxy's own manifest changed: digest %s", got) } // The two acme templates are pinned the same way (issue 849): they are what the proxy's certificates are asked