-
-
Notifications
You must be signed in to change notification settings - Fork 685
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
[Question] Importing generated proto go files from another source. #1377
Comments
for context, here is the
and this is the
although its probably pointless to include them since there's nothing wrong with the builds itself |
Issue #512 is tracking this. |
Thanks for the heads up. I don't care about the timeline, I have no right to complain since I'm not contributing to the project. It's enough information to know that I don't need to google/pursue a proper solution to this problem any further since there isn't one natively provided. Not familiar with github issues etiquette since I don't often post issues so not sure if it's my duty to close this issue or not. I'll let you do it? Will also appreciate tips for temporary workarounds. Right now I've resorted to manually running the In case anyone else bumps into this thread, it looks like you can automate this with Bazel's |
I'll close this as a duplicate of #512. Sorry this is a pain right now. @ianthehat is working hard on making Go tools work with multiple build systems, but it will take some time. A quick and dirty way to get the .pb.go files is to build the |
Hi,
How do I go about fixing import path resolution when importing the generated proto go files from another go file?
Say I had this project structure:
And I've verified that all targets builds successfully, and the generated go binaries also runs successfully. This is more IDE related:
server/main.go
imports the customer proto file but my IDE does not recognize it for obvious reasons, since the generated files are all in the bazel output folders, so I miss out on auto-completions and also a nagging squigly line.I've diligently spent a whole Saturday morning googling this question and scouring the docs, but couldn't find anything regarding the topic, or wasn't sure if it was related to my issue at all. Since no one else is mentioning/complaining about this issue I'm assuming 90% of Bazel-Go-gRPC users already knows how to workaround this? Thanks in advance for any help/tip.
The text was updated successfully, but these errors were encountered: