Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protobuf cannot find enum with multiple proto files #334

Closed
jasonltaylor opened this issue Sep 6, 2023 · 3 comments
Closed

Protobuf cannot find enum with multiple proto files #334

jasonltaylor opened this issue Sep 6, 2023 · 3 comments
Labels
bug Indicates an unexpected problem or unintended behavior upstream Indicates that an issue relates to an upstream problem (such as in pact-reference)

Comments

@jasonltaylor
Copy link

Software versions

  • OS: Debian Linux
  • Consumer Pact library: Pact go v2.0.1 (main branch HEAD)
  • Provider Pact library: Pact Go CLI v2.0.0-beta.22, protobuf 0.3.4
  • Golang Version: go version go1.20.3 linux/amd64
  • Golang environment: Provide output of go env

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.
#333

Relevent log files

See attached file.
test_fail.txt

@mefellows mefellows added bug Indicates an unexpected problem or unintended behavior upstream Indicates that an issue relates to an upstream problem (such as in pact-reference) labels Sep 20, 2023
@mefellows
Copy link
Member

Issue looks to be related to pactflow/pact-protobuf-plugin#31.
See #333 for repro.

@jasonltaylor
Copy link
Author

verified fixed with protobuf plugin 0.3.6

@mefellows
Copy link
Member

Closed in #333 .

@github-project-automation github-project-automation bot moved this from New Issue to Closed in Pact Triage (not yet in use) Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior upstream Indicates that an issue relates to an upstream problem (such as in pact-reference)
Projects
Status: Closed
Development

No branches or pull requests

2 participants