-
Notifications
You must be signed in to change notification settings - Fork 119
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
deprecated usage of go_package option in proto files #181
Comments
Even the suggestion it provides is incomplete. We should use the following instead, right? option go_package = "github.com/bazelbuild/remote-apis/build/bazel/semver"; |
jmillikin
added a commit
to jmillikin/remote-apis
that referenced
this issue
Apr 12, 2022
The Protobuf documentation for [`go_package`][1] requires that it contain a fully-qualified import path, with an optional package name override. As of [CL 301953[2] (released in [protobuf-go v1.26][3]), this requirement is being enforced by the `protoc-gen-go` plugin. I set the `go_package` options such that there is no change to generated code compared to the previous version. This required overriding the package names for the `remoteasset`, `remoteexecution`, and `remotelogstream` packages, since those have import paths ending in `/v1` or `/v2`. Fixes bazelbuild#181 [1] https://developers.google.com/protocol-buffers/docs/reference/go-generated#package [2] https://go-review.googlesource.com/c/protobuf/+/301953/ [3] https://github.com/protocolbuffers/protobuf-go/releases/tag/v1.26.0
jmillikin
added a commit
to jmillikin/remote-apis
that referenced
this issue
Apr 12, 2022
The Protobuf documentation for [`go_package`][1] requires that it contain a fully-qualified import path, with an optional package name override. As of [CL 301953][2] (released in [protobuf-go v1.26][3]), this requirement is being enforced by the `protoc-gen-go` plugin. I set the `go_package` options such that there is no change to generated code compared to the previous version. This required overriding the package names for the `remoteasset`, `remoteexecution`, and `remotelogstream` packages, since those have import paths ending in `/v1` or `/v2`. Fixes bazelbuild#181 [1]: https://developers.google.com/protocol-buffers/docs/reference/go-generated#package [2]: https://go-review.googlesource.com/c/protobuf/+/301953/ [3]: https://github.com/protocolbuffers/protobuf-go/releases/tag/v1.26.0
bergsieker
pushed a commit
that referenced
this issue
Apr 13, 2022
The Protobuf documentation for [`go_package`][1] requires that it contain a fully-qualified import path, with an optional package name override. As of [CL 301953][2] (released in [protobuf-go v1.26][3]), this requirement is being enforced by the `protoc-gen-go` plugin. I set the `go_package` options such that there is no change to generated code compared to the previous version. This required overriding the package names for the `remoteasset`, `remoteexecution`, and `remotelogstream` packages, since those have import paths ending in `/v1` or `/v2`. Fixes #181 [1]: https://developers.google.com/protocol-buffers/docs/reference/go-generated#package [2]: https://go-review.googlesource.com/c/protobuf/+/301953/ [3]: https://github.com/protocolbuffers/protobuf-go/releases/tag/v1.26.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Warning from protoc v3.13.0 when generating bindings:
The text was updated successfully, but these errors were encountered: