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

CloudEvent proto with wrong definition of go_package option #962

Open
AFMiziara opened this issue Oct 20, 2023 · 0 comments
Open

CloudEvent proto with wrong definition of go_package option #962

AFMiziara opened this issue Oct 20, 2023 · 0 comments

Comments

@AFMiziara
Copy link

I am trying to import CloudEvent as a direct dependency in one of my gRPC services definitions and I am building the whole application with Bazel. I managed to import the proto itself, but then I got the following error:

bazel-out/darwin-fastbuild/bin/proto/xyz/abc/xxx/v1/xxxv1_go_proto_/github.com/xxx-io/go/proto/xxx/xyz/abc/v1/service.pb.go:10:5: could not import / (import path cannot be absolute path)

This is caused, because right now we have this definition of go_package option:

option go_package = "/;pb";

When it should reflect the full import path of the generated Go code:

option go_package = "github.com/cloudevents/sdk-go/binding/format/protobuf/v2/pb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant