-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Recommended protobuf integration triggers bazel warning: external/com_google_protobuf_java/WORKSPACE (@com_google_protobuf) does not match #4495
Comments
Seems like a bug in the gh.com/google/protobuf repo? If so, please reassign
/ move there.
…On Mon, Jan 22, 2018, 15:15 Irina Iancu ***@***.***> wrote:
Assigned #4495 <#4495> to
@cgrushko <https://github.com/cgrushko>.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#4495 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB5_YZodG60omroAx3TqJ92L1dEYPY38ks5tNInVgaJpZM4Rlu7f>
.
|
That's indeed the question here, whether or not is this a bug or a feature? In case it's a feature, then Bazel should accept the mismatch and remove the warning. Can you (or someone else) shed some light on what is the right next step here? It can be also seen, that Bazel's own build tool chain uses a similar
Lines 75 to 91 in bea6712
|
|
The warning will be common for any project using the previous set up with @drigz, the warning will not be resolved by the grpc update, since @davido is having trouble with rules_closure because it still uses the old style. |
cgrushko/proto_library#5 can be referenced to show projects how to update. |
Ah, thanks for the correction, @ejona86. |
Thanks, it almost clarifies it. Looking into grpc/grpc-java#3881 and comparing it with the current situation in
As it uses its own build_file and different I'm not sure how to replace this according to the new style? |
On second thought, I will let the fix for consumption of [1] bazelbuild/rules_closure#249 |
FWIW: both CIs are now red with my CLs: with the same message:
That's because on both environments Bazel is tool old:
I guess Bazel must be at least 0.8.0 to support that, yet, |
Rules closure protobuf rules consumption is outdated and triggers workspace name mismatch warning. See discussion in: [1],[2]. Fork rules_closure with the fix until the PR [3] is merged upstream. [1] bazelbuild/rules_closure#248 [2] bazelbuild/bazel#4495 [3] bazelbuild/rules_closure#249 Bug: Issue 8182 Change-Id: Ifb59f90ac5a7604922b841377e75598369e9f70c
//CC @ejona86 @cgrushko as author of Protobuf integration recommendation and maintainer of https://github.com/cgrushko/proto_library.
In bazelbuild/rules_closure#231, bazelbuild/rules_closure#232
rules_closure
recently moved from depending on protobuf release binaries to depending on the protobuf directly.Gerrit Code Review updated recently to
rules_closure
@Head and now Gerrit build started to issue this warning:To reproduce, clone gerrit code review and issue
bazel build gerrit
.I reported this issue in
rules_closure
repository, but I was recommended to ask for feedback here.The alternative way to repro is to clone
rules_closure
and run the tests there:The Protobuf integration recommendation is telling us to fetch the same repository multiple times under different names:
What is the recommended way to avoid the warning? Or should Bazel accept such mismatch:
external/com_google_protobuf_java/WORKSPACE (@com_google_protobuf) does not match
without warning, not to mention "cause a build error in future versions"?The text was updated successfully, but these errors were encountered: