v1.4.0
This is a small release, mostly to support an initial release of goprotoc.
"github.com/jhump/protoreflect/desc"
Additions:
- The
ImportResolver
type has a newSkipFallbackRules
field. When set, any global rules set via calls todesc.RegisterImportPath
will be ignored by the resolver; only rules set directly on the resolver will be respected.
"github.com/jhump/protoreflect/desc/protoparse"
Additions:
- A new
ResolveFilenames
function has been added to help pre-process file names that may contain absolute paths. This is meant for use when the parser'sAccessor
is dealing with actual files on the filesystem (including when using the default accessor).
Changes/fixes:
- Some minor changes were made to the resulting descriptor protos so they more closely match the output of
protoc
for the same input files:- The
syntax
field will not be set unless the file's syntax is proto3. - The
MethodDescriptorProto.options
field will be set if the source used{ }
to terminate the method (vs.;
), even if there were no options inside.
- The