Robert Henzel
08/04/2022, 9:11 AMRobert Henzel
08/04/2022, 9:19 AMMatt (pactflow.io / pact-js / pact-go)
Robert Henzel
08/04/2022, 1:56 PMRobert Henzel
08/04/2022, 2:56 PMimport "<http://gitlab.com/elon/musk/hela/module/secure/pb/definition_modulerule.proto|gitlab.com/elon/musk/hela/module/secure/pb/definition_modulerule.proto>";
what will be parent_dir?Robert Henzel
08/04/2022, 6:41 PM~/.pact/plugins/protobuf-0.1.8/protoc
or into directory where the service.proto is (
"pact:proto": "` + service.proto + `",
Remeber when the import look like this
import "<http://gitlab.com/group/project/definitions.proto|gitlab.com/group/project/definitions.proto>";
then you have to copy it under
~/.pact/plugins/protobuf-0.1.8/protoc/gitlab.com/group/project/definitions.proto
or
./gitlab.com/group/project/definitions.proto
Jason Army
08/05/2022, 5:58 PMuglyog
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
uglyog
Matt (pactflow.io / pact-js / pact-go)
Robert Henzel
08/08/2022, 8:42 AM/home/robert/.pact/plugins/protobuf-0.1.8/pact_plugin.json
Something like that:
{
"pluginInterfaceVersion": 1,
"name": "protobuf",
"version": "0.1.8",
"executableType": "exec",
"minimumRequiredVersion": null,
"entryPoint": "pact-protobuf-plugin",
"entryPoints": {},
"dependencies": null,
"pluginConfig": {
"protocVersion": "3.19.1",
"downloadUrl": "<https://github.com/protocolbuffers/protobuf/releases/download>",
"imports": [
"/home/robert/go/src"
]
}
}
Then the protoc binary would execute with
protoc -I /home/robert/go/src ... service.proto
That would simplify a lot the process cause right now I have to copy all the imports in this one path where service.proto is.
@uglyogSri Swetha Somepalli
08/08/2022, 5:38 PM"pact:proto": "` + service.proto + `",
But, faced the below errorSri Swetha Somepalli
08/08/2022, 5:40 PMuglyog
Pact file does not contain any Protobuf descriptors
can you check the generated Pact file. That means there are no descriptors stored in the file.Sri Swetha Somepalli
08/09/2022, 5:59 PMSri Swetha Somepalli
08/31/2022, 6:34 PM{
"manifestVersion": 1,
"pluginInterfaceVersion": 1,
"name": "protobuf",
"version": "0.1.10",
"executableType": "exec",
"entryPoint": "pact-protobuf-plugin",
"pluginConfig": {
"protocVersion": "3.19.1",
"downloadUrl": "<https://github.com/protocolbuffers/protobuf/releases/download>",
"hostToBindTo": "127.0.0.1",
"additionalIncludes": [
"//Users/ssomepalli/Documents/chronos/ad-break-chronos/src/test/resources/grpc"
]
}
}