Importer throws error when .proto dependency is not in current or sub-directory of imported .proto
See original GitHub issueOur organization uses a central repo that contains a large number of different libraries, which includes proto definitions for all our services (hundreds). However, there are also a number of separate proto definitions that are imported to the service definitions, that are stored in a wholly separate directory structure. I created an example repo that hopefully illustrates the problem. The directory structure looks like this:
> org
> shared
> lib
> grpcproto
> uuid.proto
> services
> auth
> authv2.proto
I created a sample repo to test with, which can be found here: https://github.com/molteninjabob/org.
In this example, authv2.proto
imports uuid.proto
from a completely separate branch in the org directory structure. I can create the importer successfully, but the import throws the following error:
microcks | protoc-jar: executing: [/tmp/protocjar8444733488152786468/bin/protoc.exe, -I/tmp/protocjar8444733488152786468/include, --include_imports, --proto_path=/tmp, --descriptor_set_out=/tmp/microcks-162613201891814477613584668397839.download.pbb, microcks-162613201891814477613584668397839.download]
microcks | org/shared/lib/grpcproto/uuid.proto: File not found.
microcks | microcks-162613201891814477613584668397839.download:6:1: Import "org/shared/lib/grpcproto/uuid.proto" was not found or had errors.
Attaching stack trace. stack.txt
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
@lbroudoux No worries and sorry it took a bit to get back. I’ll keep playing around with things. I really love what you’re doing and we want to use microcks as our main tool for mocking endpoints. You’re doing great things!
@xymox : your help would be really appreciated on this one 😉