From 0e9fb2cbe3cf250e2bf231d5520f814307436c0a Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 12 Nov 2026 12:03:25 +0100 Subject: [PATCH] A-281: the switch key names the gate's own build through mesh-sdk's process, which the environment check allows --- modules/mesh-delivery-gate/cmd/mesh-delivery-gate/switch.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/switch.go b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/switch.go index 1cfaacb4f..730eaea4e 100644 --- a/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/switch.go +++ b/modules/mesh-delivery-gate/cmd/mesh-delivery-gate/switch.go @@ -17,6 +17,7 @@ import ( mdc "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-contracts/go/clients/meshdeliveryclient" seat "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-contracts/go/seats/meshdelivery" "git.novox.be/novox/mesh-sdk/go/keys" + "git.novox.be/novox/mesh-sdk/go/process" ) // oldDelivery is a delivery as the old section `deliveries` kept it, as far as the switch reads it. @@ -118,7 +119,7 @@ func (h *Holder) Switch() (opened, found int, err error) { } defer func() { if err == nil { - err = h.Records.MarkSwitched(os.Getenv("MESH_FINGERPRINT")) + err = h.Records.MarkSwitched(process.ReadOwnBuild(os.Getenv).String()) } }() groups, err := h.inFlight()