-
-
Notifications
You must be signed in to change notification settings - Fork 668
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: proto importpath #1825
Comments
Do you have
In the
|
Sorry, I do not clearly describe the problem.so i make a example. now it is compilable.it only have proto without any pb.go file. guard.proto and vip.proto own a same import.
I hope that that import can own a prefix that looks like this.
I can add this go-common prefix to build successfully by using go-build and protoc without bazel. but I wish to complete by bazel. |
Unfortunately, I don't think it's possible. Kubernetes wants the same thing: their proto imports start with
|
it is solved by bazel 0.22. |
Now we have a compilable project by using bazel.it's file layout looks like this.
it is very easy to make it runnable.but this proto‘s import must look like this.
but we know golang import has
go-common
prefix. my colleague hopes that golang import and proto import have same rule.so when I addgo-common
prefix at proto's import. it fails to build.How to accompish this goal?
The text was updated successfully, but these errors were encountered: