-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Adding sub-plugin to protoc-gen-go #475
Comments
I created this And then it is easily usable like this: |
The plugin mechanism was originally designed just for grpc and not too much though was put into how it is used today. There aren't any plans to improve plugin support for now given that other areas of Go protobufs require more attention. Forking the repo or copying the content of the main file are fine approaches for now. |
Support for plugins in general needs to be discussed. If we decide to provide first-class support for plugins, there will probably be an entire redesign. Closing this in favor of the umbrella issue #547. |
Hi all,
It's nice that protoc-gen-go supports sub-plugins, which helped me avoids lots of boilerplates I used to write for protoc plugin.
The problem with adding a sub-plugin is that, there is no way to reuse the existing
main.go
when use the package as a whole. The two options are eitherBoth options makes it difficult for me to keep things up-to-date with the upstream. Could you suggest a better way to do this?
Thanks!
The text was updated successfully, but these errors were encountered: