-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Bazel: Add dependency to error_prone_annotations #5811
Bazel: Add dependency to error_prone_annotations #5811
Conversation
Recently dependency to error_prone_annotations was added to the code, but only Maven build tool chain was updated. Closes protocolbuffers#5795.
Can we add a test to avoid regression? |
Well, it doesn't build, so that running this is failing:
|
@davido Thanks for sending this, it should unblock our upgrade to 3.7.0. Do you have any idea why this didn't break the build on Bazel CI? Latest build is green: https://buildkite.com/bazel/protobuf/builds/2318#800b3b9c-a999-4a56-957b-c51e25881591 |
That's because the CI is currently saying this:
As you can see, there are currently only python tests available, so that all breakages in Java tool chain is not discovered. I guess that's why @TeBoring suggested to add some Java tests to avoid future regressions in this area. |
Thanks, I hadn't noticed That said, I'd prefer this fix get in quickly, and we fix the CI in a followup change. |
bind( | ||
name = "error_prone_annotations", | ||
actual = "@error_prone_annotations_maven//jar", | ||
) |
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.
Should this also be added to https://github.com/protocolbuffers/protobuf/blob/master/protobuf_deps.bzl?
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.
The other java dependencies (guava etc) aren't defined there, so this PR doesn't change anything in that respect.
I'd like to also petition for this to end up in protobuf_deps.bzl, as indicated in change comments, and to use the bazel-deps fully qualified repository name (com_google_errorprone_error_prone_annotations) that it generates. |
Let me go ahead and merge this now to fix the build breakage. I don't fully understand the proper way to set up our |
Is this going to be backported to 3.7.x branch? |
Recently dependency to error_prone_annotations was added to the code,
but only Maven build tool chain was updated.
Closes #5795.