-
Notifications
You must be signed in to change notification settings - Fork 30
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
using protobuild with multiple generator #15
Comments
I have think about it. Could we think about something like this : [[generator]]
name = "gotemplate"
[generator.options]
debug = true
template_dir = "."
[[generator]]
name = "gogo"
[generator.options]
debug = true
[generator.plugins]
["grpc", "blabla"] |
Hey @stevvooe I have forked an done something that might interest you, could you have a look and tell me if it can work for you ? ( that should resolve #15 and #17 ) What I need to change, etc before pushing a PR ? https://github.com/Tommy-42/protobuild Thanks |
Can you do this with overrides? |
Is your proposal backwards compatible? |
It cannot be done with overrides because in some (or most) cases you want to apply two or more generators to the same proto files. @Tommy-42 suggestion looks god provided it is backwards compatible. The workaround I am using for now in two config files and running protobuild twice using the -f option. |
@Tommy-42 I guess send a pull request. Make sure there are examples of how the output gets generated, along with intermediary commands. |
This could be addressed for supporting Google's latest Go code generator. It doesn't support gRPC plugin anymore. |
It should be possible now, like Line 3 in 7e5ee24
|
Hello,
I was wondering if protobuild could actually be able to be used with more than 1 generator ?
I can't use both
go_out
andgrpc-gateway_out
that I normaly use withprotoc
command line.I have to do 2
.toml
right ?I can't find anything on this topic.
Should it be supported ?
Is it on a TODO ?
Best regards,
Thanks for the awesome job tho !
The text was updated successfully, but these errors were encountered: