-
-
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
go_proto_library
failure using rules_go 0.5.3 and bazel 0.5.3
#742
Comments
go_prefix is supposed to be a fully qualified import path, "." is not valid. Not sure if that's what is causing the problem or not. |
You are right, that was indeed the issue.
|
I agree that a nicer message would be good, but I recently proposed that we delete go_prefix totally, (see #721) and Jay has already started working on it (see #733), it's already at the point where for this use case you would not need a go_prefix at all, so I would prefer not to spend time improving it. I don't think the error messages from explicit but incorrect importpath settings will be as obtuse or hard to work out why they happened. Please re-open if you disagree with any of this! |
I'm trying to use the
go_proto_library
using rules_go 0.5.3 and bazel 0.5.3 and I'm hitting problems.The error looks like this:
Note that the rule that generas the
.pb.go
is happy:In case is helps, I noticed two more things:
local_repository
forio_bazel_rules_go
(that's how I initially bump into this problem)./dummy/BUILD
and./dummy/dummy.proto
in the rules_go 0.5.3 workspace.The files to reproduce the above error (I get the same error on both Linux and macOS):
WORKSPACE:
BUILD:
dummy/BUILD:
dummy/dummy.proto:
The text was updated successfully, but these errors were encountered: