github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/debian/patches/libnetwork_proto_no_unrecognized_all.patch (about) 1 Description: Since gogo/protobuf 1.2 unknown fields in proto3 are preserved. 2 This results in a XXX_unrecognized of type []byte to be created in the struct. 3 As a side effect the struct can't be used as a map key anymore, resulting in 4 a libnetwork build failure. 5 6 Fix this by setting goproto_unrecognized_all=false which suppresses this field. 7 8 Upstream doesn't have the problem because they have pinned an older version 9 of gogo/protobuf: https://github.com/docker/libnetwork/pull/2242 10 Author: Felix Geyer <fgeyer@debian.org> 11 12 Index: docker/libnetwork/agent.proto 13 =================================================================== 14 --- docker.orig/libnetwork/agent.proto 15 +++ docker/libnetwork/agent.proto 16 @@ -10,6 +10,7 @@ option (gogoproto.stringer_all) = true; 17 option (gogoproto.gostring_all) = true; 18 option (gogoproto.sizer_all) = true; 19 option (gogoproto.goproto_stringer_all) = false; 20 +option (gogoproto.goproto_unrecognized_all) = false; 21 22 // EndpointRecord specifies all the endpoint specific information that 23 // needs to gossiped to nodes participating in the network.