pact-foundation / pact-go

Golang version of Pact. Pact is a contract testing framework for HTTP APIs and non-HTTP asynchronous messaging systems.
http://pact.io
MIT License
831 stars 104 forks source link

Protobuf cannot find enum with multiple proto files #334

Closed jasonltaylor closed 8 months ago

jasonltaylor commented 8 months ago

Software versions

Expected behaviour

Consumer tests executes successfully.

Actual behaviour

2023-09-06T15:39:03.780653Z ERROR ThreadId(01) pact_ffi::plugins: Failed to call out to plugin - Request to configure interaction failed: Failed to process protobuf: Protobuf enum value .routeguide.v2.ResultCode has no value RESULT_CODE_OK

Steps to reproduce

Pushed a PR with the gRPC consumer example updated with a second proto file to demonstrate the issue. https://github.com/pact-foundation/pact-go/pull/333

Relevent log files

See attached file. test_fail.txt

mefellows commented 8 months ago

Issue looks to be related to https://github.com/pactflow/pact-protobuf-plugin/pull/31. See #333 for repro.

jasonltaylor commented 8 months ago

verified fixed with protobuf plugin 0.3.6

mefellows commented 8 months ago

Closed in #333 .