v1.15.6
This is a bugfix release to address recently identified regressions in the desc/protoparse
package -- things that worked in v1.14.1 but did not work in v1.15.x.
"github.com/jhump/protoreflect/desc/protoparse"
Changes/fixes:
- The documentation for the
Parser.ImportPaths
field specifies that the field is not used for calls to theParser.ParseFilesButDoNotLink
method. This is because import paths do not need to be resolved if not linking. But as of v1.15.0, theImportPaths
field was being used for that method, and the difference in behavior could break existing programs. This has been fixed, and the behavior once again matches the spec. - As of v1.15.0, if a path provided to
Parser.ParseFiles
were resolved as descriptors (via theParser.LookupImport
orParser.LookupImportProto
functions) instead of as source code (via theParser.Accessor
function or the default action ofos.Open
), the parse operation would fail with a "no such file" error. This would succeed with v1.14.1, with the descriptor being used as the input for the file instead of the file being parsed from source. So working programs could have been broken by an upgrade to v1.15.x. The package has been changed back to the v1.14.1 behavior.