-
Notifications
You must be signed in to change notification settings - Fork 4k
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
proto_library does not document its implicit dependency on @com_google_protobuf//:protoc #3668
Comments
I agree the documentation should be improved, however if you're still stuck, there is a guide to setting up the protobuf dependencies here: https://blog.bazel.build/2017/02/27/protocol-buffers.html |
Tried doing this now and given that the blogpost is more than a year old, there is quite some additional work needed on Bazel V 0.21, which is hard for a newbie to figure out: First I got build: Next up: When adding the flag the build succeeded, but obviously it's suboptimal if I have to specify this flag every time. How do I reference a newer version of the protobuf library? Also, would it be possible to have a documentation page describing the up-to-date steps to avoid people getting stuck? |
@martinw1982 check out this comment (#6984 (comment)) for instructions to use protobuf 3.6.1.3, which includes the fix for the REPOSITORY_NAME incompatible change issue. |
Also created a PR to update the blogpost with the minimum version required: https://github.com/bazelbuild/bazel-blog/pull/146/files?short_path=bde5ec7#diff-bde5ec77860ad065de8fd8ab1862de03 |
Thanks Jin, this worked like a charm! |
I have the same problem but I did not get how I can fix it by your suggested link. Could you explain more? |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale. |
I'm attempting to use proto_library and getting the following error message.
The documentation of proto_library has no mention of this implicit dependency so I need to go into the bazel repo to find out how that repo does it and mimic that. This dependency should be mentioned in the documentation and a recommended solution should be provided.
The text was updated successfully, but these errors were encountered: