Skip to content

v1.7.1

Compare
Choose a tag to compare
@jhump jhump released this 20 Nov 16:37

This release contains a single bug-fix.

"github.com/jhump/protoreflect/dynamic"

  • When converting a message with unrecognized fields to a dynamic message, if the original message contained unrecognized extensions, they would be duplicated in the resulting dynamic message.

    If the extensions are known to the dynamic message (via a dynamic.ExtensionRegistry), then non-repeated values can successfully be consolidated; but repeated extension fields will end up with duplicate entries. This only occurred when this module was used with v1.4+ of the "github.com/golang/protobuf" module. This has now been fixed.

    This could impact other usages of the dynamic package, such as "github.com/jhump/protoreflect/desc/protoprint", which converts a descriptor proto to a dynamic message, in order to interpret any unrecognized custom options. This could encounter the same issue described above, resulting in repeated custom options being duplicated in the printed output.