You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If multiple packages have the same "leaf" package name (package1/messages/, package2/messages/), then the linting will sometimes be skipped for one of the packages.
Then, depending on the order the proto files are supplied to protoc, the generated enum might not be linted.
this failed to lint the enum: protoc -I . --go-patch_out=plugin=go,paths=source_relative:.make v2\a\anothertest.proto v1\a\test.proto
this works: protoc -I . --go-patch_out=plugin=go,paths=source_relative:.make v2\a\test.proto v1\a\anothertest.proto
I think this is because Patcher.packagesByName is only keyed by the "leaf" package name, and thus gets overwritten.
The text was updated successfully, but these errors were encountered:
If multiple packages have the same "leaf" package name (package1/messages/, package2/messages/), then the linting will sometimes be skipped for one of the packages.
It's easiest to describe with a small example:
v1/a/test.proto:
v2/a/anothertest.proto:
Then, depending on the order the proto files are supplied to protoc, the generated enum might not be linted.
this failed to lint the enum:
protoc -I . --go-patch_out=plugin=go,paths=source_relative:.make v2\a\anothertest.proto v1\a\test.proto
this works:
protoc -I . --go-patch_out=plugin=go,paths=source_relative:.make v2\a\test.proto v1\a\anothertest.proto
I think this is because Patcher.packagesByName is only keyed by the "leaf" package name, and thus gets overwritten.
The text was updated successfully, but these errors were encountered: