Hello, team! I’m trying to mock gRPC service using...
# help
r
Hello, team! I’m trying to mock gRPC service using either standalone wiremock-grpc extension or adven27/grpc-wiremock. However, the proto files of the service are in a different git repository. In both these options, I don’t seem to find a way to work with the proto files that are in different repos other than copying them into mine. Could someone please guide me if there’s a better way to do this? Many thanks!
l
Could you add them to your repo as a git sub module?
r
So, we have all the proto files across the company in a central schema-registry repository, where a bunch of automations run for lint, code generation, topic creation etc. I don't want to add the entire central repo as a submodule.. it might lead to unnecessary complexity
t
To use WireMock’s gRPC extension you need to compile your proto files down to a descriptor file in any case, so perhaps you could treat this like any other build output i.e. build it in CI from the source project, publish it to a repository then read it from that repository when you build your mock project.
r
Thank you Tom and Lee. I’ll check if I can do something with the CI.