-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Allow the generated gateway to import the generated protobuf package #353
Comments
I didn't actually run this, but I believe when you run the protoc command you have control of the output directory. To pick the example from the README.md,
The line that says Good luck! |
Hi, same problem here. The point of separating PB code from GW code is that, I have other repos acting as this repo's client, and thus need to import PB code. However, I don't want to import anything from GW, since it's irrelevant in client. I can choose where to generate the gateway code, but it seems that the generated code is expecting itself locates in the same package of the PB code. It uses PB types without any package prefix. Any solution here? Thanks! |
In a brief test with some of my own generated files it seems like it might be possible to generate into a separate folder and import all the types and functions. I think we should be able to support this, but I don't know if we want to add the complexity of figuring out imports to the generator, so ideally it would be something we could turn on with a flag and then use via the |
@johanbrandhorst Glad to know the situation here. I could give it a shot, but no promises 😅 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still something users want |
I'd like to keep all the proto files in a separate directory than the code that gets generated from them, but I can't find a way to invoke protoc that doesn't assume the generated code is in the same package. Is it possible?
The text was updated successfully, but these errors were encountered: