when trying to use ```import "google/api/annotatio...
# protobufs
j
when trying to use
Copy code
import "google/api/annotations.proto";
I am getting
pact_protobuf_plugin::protoc: Protoc stderr: google/api/annotations.proto: File not found.
The annotations.proto is in
Copy code
consumer-jvm/build/extracted-include-protos/main/google/api/annotations.proto
on the other hand
Copy code
import "google/protobuf/wrappers.proto";
gets found at
Copy code
consumer-jvm/build/extracted-include-protos/main/google/protobuf/wrappers.proto
u
The protoc bundle does not include those files. You can see what is there in
~/.pact/plugins/protobuf-0.1.10/protoc/include/
If you have the files somewhere, you can configure an additional import directory for the plugin
Just an aside, wouldn't
google/api
be internal files? They are not art of the released bundle
j
Thanks, it works fine now 🙂 should have searched the slack channel better The google/api are here https://github.com/googleapis/googleapis/blob/master/google/api/annotations.proto