-
Notifications
You must be signed in to change notification settings - Fork 29
[WIP] Try the latest protobuf code generators #40
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,11 +5,6 @@ version = "unstable" | |
| # example that selects the ctrd vanity binary. | ||
| # generator = "gogoctrd" | ||
|
|
||
| # Plugins allows one to specify one or more plugins for use in generation. | ||
| # | ||
| # The common example grpc is provided below. | ||
| plugins = ["grpc"] | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new Go code generator doesn't support plugins. We may need to deprecate the field. |
||
|
|
||
| # Control protoc include paths. Below are usually some good defaults, but feel | ||
| # free to try it without them if it works for your project. | ||
| [includes] | ||
|
|
@@ -53,10 +48,6 @@ plugins = ["grpc"] | |
| # | ||
| # We have a few examples to map packages from the examples. | ||
| [packages] | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The package replacement still works, but gogo would not work with the latest protobuf. We may need another packages as an example. https://developers.google.com/protocol-buffers/docs/reference/go-generated#package |
||
| "gogoproto/gogo.proto" = "github.com/gogo/protobuf/gogoproto" | ||
| "google/protobuf/descriptor.proto" = "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" | ||
| "google/protobuf/timestamp.proto" = "github.com/gogo/protobuf/types" | ||
| "google/protobuf/empty.proto" = "github.com/gogo/protobuf/types" | ||
|
|
||
| # Overrides allows one to specify configuration overrides for specific | ||
| # packages. Currently, only overriding the generator and plugin set are | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://grpc.io/docs/languages/go/quickstart/#regenerate-grpc-code, the new command line options for generating gRPC code is like
So we may need to have multiple generators instead.