-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Make bazel_tools work again #24094
Make bazel_tools work again #24094
Conversation
44dfdbc
to
b61731b
Compare
We had a goal of removing all android-related code from the bazel 8 binary, and breaking changes can happen in major versions of bazel. Related to the discussions in bazel-contrib/rules_jvm_external#1270, how far back do we need to support rules_jvm_external? We're working to make rules_android 0.6.0 work with rules_jvm_external and rules_kotlin (or vice versa), blocked on a few issues including the protobuf issue here. |
that's a good point -- let's fix the protobuf thing first and let the whole android thing pan out, before deciding whether to do the partial //tools/android rollback? I acknowledge the tension between major Bazel versions making breaking changes and rulesets wanting to support older Bazel versions; we should make a conscious decision here before 8.0 release. |
Sounds like there is a egg-chicken problem here. |
ow. @ahumesky, are you okay with us getting this PR submitted as-is, and then you guys can try to resolve the situation with rules_jvm_external, and then we could maybe roll forward the //tools/android deletion? |
An important question here is what Bazel RC's the rollbacks/rollforwards would occur in. It would be extra painful to have to wait for RCs to be cut in order for changes to be reflected. |
If necessary, we can push RCs out very quickly for testing, no problem. (I'm talking multiple in a day.) cc @keertk @iancha1992 |
Can we just keep android_extensions.bzl in Bazel 8 and delete it at HEAD? It wouldn't block or slow down any rules_android starlarification work, right? |
I think it's just an accident that Also if we do have to restore bazel/tools/android/android_extensions.bzl Lines 119 to 123 in 3f70ca1
Do you mean update protobuf to work with bazel 8? rules_jvm_external has a goal of being compatible with N-2 versions of bazel (e.g. bazel-contrib/rules_jvm_external#1268 (comment)), but it's not clear that we need to ensure old versions of rules_jvm_external work with new versions of bazel (the compatibility matrix is already very difficult). Would it work to first land adding the protobuf dep (#23908) which is required for rules_android 0.6.0, then we can update rules_jvm_external for rules_android 0.6.0 (revert bazel-contrib/rules_jvm_external#1215 / restore bazel-contrib/rules_jvm_external@ba7310c, and also this I think bazel-contrib/rules_jvm_external#1268), then we can update rules_kotlin (bazelbuild/rules_kotlin#1205, probably others). Or are there more circular dependencies that prevent all this from working? |
After discussing this, because of the various circular dependencies we'll need to restore android_extensions.bzl to update all the rulesets for bazel 8 |
This PR address two problems: - Partially rolledback bazelbuild@ef1a21f to restore android tools extension to avoid breaking older rules_jvm_external and rules_kotlin versions: bazel-contrib/rules_jvm_external#1270 - Add protobuf in MODULE.tools to ensure a Bazel 8 compatible version gets selected. (related bazelbuild#23908) Closes bazelbuild#24094. PiperOrigin-RevId: 690625240 Change-Id: I47e9ab7cab9bbfd09e455fb72d3d99d3e73f1f90
@bazel-io fork 8.0.0 |
- Update rules_java to 8.2.0: 93daa7b - 78abca3 - #24094 --------- Co-authored-by: Googler <[email protected]>
The changes in this PR have been included in Bazel 8.0.0 RC2. Please test out the release candidate and report any issues as soon as possible. |
This PR address two problems: - Partially rolledback bazelbuild@ef1a21f to restore android tools extension to avoid breaking older rules_jvm_external and rules_kotlin versions: bazel-contrib/rules_jvm_external#1270 - Add protobuf in MODULE.tools to ensure a Bazel 8 compatible version gets selected. (related bazelbuild#23908) Closes bazelbuild#24094. PiperOrigin-RevId: 690651136 Change-Id: I47e9ab7cab9bbfd09e455fb72d3d99d3e73f1f90
This PR address two problems:
android_extensions.bzl
with Bazel 8.0.0rc1 and later bazel-contrib/rules_jvm_external#1270protobuf
dep tobazel_tools
#23908)