Repository navigation
v1.4.0
This is a small release, mostly to support an initial release of goprotoc.
"github.com/jhump/protoreflect/desc"
Additions:
- The
ImportResolvertype has a newSkipFallbackRulesfield. When set, any global rules set via calls todesc.RegisterImportPathwill be ignored by the resolver; only rules set directly on the resolver will be respected.
"github.com/jhump/protoreflect/desc/protoparse"
Additions:
- A new
ResolveFilenamesfunction has been added to help pre-process file names that may contain absolute paths. This is meant for use when the parser'sAccessoris 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
protocfor the same input files:- The
syntaxfield will not be set unless the file's syntax is proto3. - The
MethodDescriptorProto.optionsfield will be set if the source used{ }to terminate the method (vs.;), even if there were no options inside.
- The