-
Notifications
You must be signed in to change notification settings - Fork 29
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
Support multiple generators #45
Conversation
d0ca12b
to
764614f
Compare
@@ -27,10 +27,14 @@ import ( | |||
const configVersion = "unstable" | |||
|
|||
type config struct { | |||
Version string | |||
Generator string |
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.
Would it be possible to keep compatibility with the previous syntax?
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.
It may be. Let me check.
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.
The latest revision should support both Generator and Generators. The former is converted to the latter internally.
5aff242
to
bde1693
Compare
@AkihiroSuda @stevvooe Could you take a look? |
config.go
Outdated
Plugins []string | ||
Includes struct { | ||
|
||
// Plugins will be deprecated. It has to be per-Generator setting, but neither protoc-gen-go nor protoc-gen-go-grpc |
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.
The statement about plugin support is a bit hard to understand with the double negative. Is this saying both support plugins?
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.
Oh. That was simply wrong. It has to be
but neither protoc-gen-go nor protoc-gen-go-grpc support plugins
The latest version of protoc-gen-go doesn't support gRPC. Supporting multiple generators is the way to support gRPC going forward. Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
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.
LGTM
Is it time to start versioning the config?
The latest version of protoc-gen-go doesn't support gRPC. Supporting multiple generators is the way to support gRPC going forward.