Skip to content

v1.4.0

Compare
Choose a tag to compare
@jhump jhump released this 23 May 02:23
fdaf03a

This is a small release, mostly to support an initial release of goprotoc.

"github.com/jhump/protoreflect/desc"

Additions:

  • The ImportResolver type has a new SkipFallbackRules field. When set, any global rules set via calls to desc.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's Accessor 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.