Fix 9.6a: wireguard's Go Manifest() says version 0.1 as module.json does; route-proxy's pinned manifest digest follows the version

Builds: design 47 G A-46, §368, §411

Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
2026-11-12 01:03:05 +01:00
parent 10a06ff08a
commit 3c2239802d
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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.
@@ -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