Skip to content

v1.4.4

Choose a tag to compare

@jhump jhump released this 03 Jul 17:52
ae7b4b3

This release contains bug-fixes for a single function.

"github.com/jhump/protoreflect/desc/protoparse"

Changes/fixes:

  • The ResolveFilenames function previously expected file paths to always be relative to the process's current working directory. However, correct behavior (modeled after protoc) is to also allow file paths to be relative to one of the import paths. This has been fixed: file paths are only assumed to be relative to cwd when no such file exists that is relative to one of the import paths.
  • The ResolveFilenames function could get confused if provided paths that included symbolic links. When deciding whether or not one absolute path is a descendant of another (part of its logic to relate file paths with their corresponding import path), paths will now be canonicalized by resolving symbolic links.