-
Notifications
You must be signed in to change notification settings - Fork 112
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
Remove com_google_protobuf_java #249
Conversation
Can one of the admins verify this patch? |
The CI failure is related and caused by too old Bazel version on Travis CI:
The minimum required Bazel version is 0.8.0. |
b23e17e
to
98c6377
Compare
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
Would be nice to have this. Also getting that Bazel nastrygram: |
Until this is merged, you could consider to consume |
Could you sync to master? |
@@ -66,6 +66,8 @@ def closure_repositories( | |||
omit_org_ow2_asm_util=False, | |||
omit_phantomjs=False): | |||
"""Imports dependencies for Closure Rules.""" | |||
if omit_com_google_protobuf_java: | |||
fail("omit_com_google_protobuf_java no longer supported and must be not be passed to closure_repositories()") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice if the error message also specified either an alternative or referenced a public issue for users to go look for answers such as "why?"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see @jart's comment on the original issue I raised for this warning: #248 (comment).
I'm not in position to summarize that move in dense couple of words (that would be appropriate for the build tool chain error message), but I would happily add any suggestions from the project maintainers to extend/adjust the current error message, if this would help get this CL merged.
Closes bazelbuild#248. com_google_protobuf_java was deprecated with Bazel 0.8.0, which now uses @com_google_protobuf instead. This change will break users that use closure_repositories(omit_com_google_protobuf_java=True), so I've added a custom error message to make the resolution clearer. Test Plan: $ bazel test javatests/... and confirm that the warning from bazelbuild#248 is gone. Inspired-By: Rodrigo Queiro <overdrigzed@gmail.com>
fe89af5
to
544fdec
Compare
Done. |
Closes bazelbuild#248. com_google_protobuf_java was deprecated with Bazel 0.8.0, which now uses @com_google_protobuf instead. This change will break users that use closure_repositories(omit_com_google_protobuf_java=True), so I've added a custom error message to make the resolution clearer. Test Plan: $ bazel test javatests/... and confirm that the warning from bazelbuild#248 is gone. Inspired-By: Rodrigo Queiro <overdrigzed@gmail.com>
Closes #248.
This was deprecated with Bazel 0.8.0, which now uses
@com_google_protobuf instead.
This change will break users that use
closure_repositories(omit_com_google_protobuf_java=True), so I've
added a custom error message to make the resolution clearer.
Test Plan:
$ bazel test javatests/...
and confirm that the warning from #248 is gone.
Inspired-By: Rodrigo Queiro overdrigzed@gmail.com