-
Notifications
You must be signed in to change notification settings - Fork 48
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
Issues generating multiple files from same package #41
Comments
Have you tried passing both ex1.proto and ex2.proto to letmegrpc at the same time? |
Yes. I pass it like this: |
Damn, my bad, I never ran into this use case. |
Is there a solution to this yet? I have one .proto which wraps around the other in the same package, but attempting to compile both with gogo and the wrapper with letmegrpc makes it say |
Hmmm, I wonder why I thought this was fixed. A pull request to fix this would be most welcome |
My bad, it seems to work fine when invoking |
Ooo yeah that is quite hacky. |
Hi,
Conflicts happen after generating separate files that are a part of the same package.
Such generated files have functions and variables with the same name which causes issues.
Example:
Lets say I have 2 files in "package example" named ex1.proto and ex2.proto.
When I run protoc --letmegrpc (...) I get var Header, var Footer, and function func NewHandler defined in both ex1.letmegrpc.go and ex2.letmegrpc.go which causes issues.
I may have a workaround for this issue.
The text was updated successfully, but these errors were encountered: