Unmarshaling data that was marshaled using Google's proto.Marshal()
omits protobuf extensions
#695
Labels
apiv2
Issues blocking Go protobuf APIv2 compatibility
It appears that there is an incompatibility between Google's
proto.Marhsal()
and Gogo'sproto.Unmarshal()
.Given a protobuf structure with an extension (assigned with
proto.SetExtension()
), if I marshal it to binary using Google'sproto.Marshal()
function then unmarshal it using Gogo'sproto.Unmarshal()
the resulting structure has itsXXX_InternalExtensions
field set tonil
.Possibly relevant, I am building a "legacy" project in GOPATH mode (explicitly not using Go modules).
Relevant Go environment:
The text was updated successfully, but these errors were encountered: