v1.15.3
This is a bugfix release to address a panics in the desc/builder
and desc/protoparse
packages.
"github.com/jhump/protoreflect/desc/builder"
Changes/fixes:
- When building an enum where some values in an
EnumBuilder
had numbers explicitly assigned and others did not, a panic could occur. This panic has now been fixed. When there is a mix of explicit value numbers and implicit numbers, the implicit values will be auto-assigned available numbers (starting at zero) while the explicit values will use the configured number.
"github.com/jhump/protoreflect/desc/protoparse"
Changes/fixes:
- When the
protoparse
package was overhauled in v1.15.0, a bug was inadvertently introduced to the functionality related to theParser.InferImportPaths
flag. If the files being processed imported a file for which an AST was not available (which is actually quite common, since they may import a standard file such as "google/protobuf/empty.proto"), a panic would occur. This panic has been fixed. - This release includes some other improvements related to the same
Parser.InferImportPaths
flag which now allow it to better detect file layouts and remedy import mismatches in more scenarios.