pact-foundation / pact-plugins

🏰 Architecture to support Plugins 🔌 with Pact 🔗
MIT License
19 stars 11 forks source link

How can i resolve proto import #20

Closed dev-rgupta closed 4 months ago

dev-rgupta commented 1 year ago

My Main Proto file import other proto files so How can I resolve those import proto's?

I'm using java/kotlin and my Proto A -----import--> proto B-----import--->proto C and all protos are in diff package structure when I'm compiling Proto A, it's not able to resolve imports. I tried to take help from pact-plugin example but couldn't able to resolve complex or domain specific proto.

rholshausen commented 1 year ago

For the Protobuf plugin, you can provide additional directories to load proto files from, see https://github.com/pactflow/pact-protobuf-plugin#additionalincludes-string-or-liststring

YOU54F commented 4 months ago

Example in GoLang

Example in Java