-
Notifications
You must be signed in to change notification settings - Fork 507
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
Proto generation #206
Comments
@wahmedswl, yes. Run Though you could use the packages in https://github.com/jhump/protoreflect to translate them into source files. You'd have to write some Go code to make that happen.
|
Nice, can this be integrated within grpcurl? This is something useful. Thanks |
Alternatively, grpcurl could follow up on #57 and add a |
@costela, I'm not sure that would really work. The resulting source would not be compile-able unless it emitted, at a minimum, one file per referenced package. IMO, it would ideally be one file per actual input source file that defined the schema, which is how So it needs to be special-cased to support multi-file export; it's not sufficient to just print the transitive closure of all elements independently as if in one file. I'm thinking that it would instead be a |
@jhump ah yes, that makes sense. I'm coming from the "easy" case of single package proto definitions, so it would be enough for us, but not for a lot of other people. Just out of curiosity, why do you suggest zipping the output (as opposed to, e.g. |
@costela @jhump @wahmedswl I have made a PR to support this functionality. Check: #475 |
Hi, can we export proto from grpc server reflection?
Thanks
The text was updated successfully, but these errors were encountered: