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
github.com/repo1/.../x.proto File not found
github.com/repo2/.../y.proto File not found
after debugging the code I realised, that the /vendor is never passed to -I in protoc since it was part of the main.proto file path and this behaviour was not documented at all... 🤷♂️ so mounting another dir for imports worked like this:
great tool, but I was stuck on proto imports
issues:
/protobuf/google
is not up to date. missinggoogle/api/annotations.proto
I have my file structure like this:
I did this:
docker run --rm -p 4770:4770 -p 4771:4771 -v ./vendor:/vendor --imports="/vendor,/protobuf" /vendor/github.com/repo3/.../main.proto
it returns
after debugging the code I realised, that the
/vendor
is never passed to-I
in protoc since it was part of the main.proto file path and this behaviour was not documented at all... 🤷♂️ so mounting another dir for imports worked like this:docker run --rm -p 4770:4770 -p 4771:4771 -v ./vendor:/vendor -v ./vendor/github.com/repo3:/repo3 --imports="/vendor,/protobuf" /repo3/.../main.proto
The text was updated successfully, but these errors were encountered: