Skip to content

Bump Bazel to 9.0.0.#254

Merged
copybara-service[bot] merged 1 commit intomasterfrom
test_874203176
Feb 24, 2026
Merged

Bump Bazel to 9.0.0.#254
copybara-service[bot] merged 1 commit intomasterfrom
test_874203176

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Feb 24, 2026

Bump Bazel to 9.0.0.

In bazel_common and flogger, this included temporarily adding a direct dependency on the newest version of rules_android so that rules_jvm_external gets the version it needs for Bazel 9, avoiding this error:

ERROR: Traceback (most recent call last):
        File "/usr/local/google/home/cpovirk/.cache/bazel/_bazel_cpovirk/63abd04538d973afcb7c178098cdeca1/external/rules_android+/rules/android_binary/attrs.bzl", line 68, column 29, in <toplevel>
                deps = make_deps(DEPS_ALLOW_RULES, DEPS_PROVIDERS, DEPS_ASPECTS),
        File "/usr/local/google/home/cpovirk/.cache/bazel/_bazel_cpovirk/63abd04538d973afcb7c178098cdeca1/external/rules_android+/rules/android_binary/attrs.bzl", line 35, column 27, in make_deps
                return attr.label_list(
Error in label_list: at index 0 of providers, got element of type NoneType, want Provider
WARNING: Target pattern parsing failed.
ERROR: Skipping '@google_bazel_common_maven//:pin': error loading package '@@rules_jvm_external++maven+google_bazel_common_maven//': at /usr/local/google/home/cpovirk/.cache/bazel/_bazel_cpovirk/63abd04538d973afcb7c178098cdeca1/external/rules_android+/rules/rules.bzl:45:5: at /usr/local/google/home/cpovirk/.cache/bazel/_bazel_cpovirk/63abd04538d973afcb7c178098cdeca1/external/rules_android+/rules/android_binary/rule.bzl:25:6: initialization of module 'rules/android_binary/attrs.bzl' failed

RELNOTES=n/a

In `bazel_common` and `flogger`, this included temporarily adding a direct dependency on the newest version of `rules_android` so that [`rules_jvm_external` gets the version it needs for Bazel 9](https://github.com/bazel-contrib/rules_jvm_external/pull/1534/changes#diff-6136fc12446089c3db7360e923203dd114b6a1466252e71667c6791c20fe6bdcR7), avoiding this error:

```
ERROR: Traceback (most recent call last):
        File "/usr/local/google/home/cpovirk/.cache/bazel/_bazel_cpovirk/63abd04538d973afcb7c178098cdeca1/external/rules_android+/rules/android_binary/attrs.bzl", line 68, column 29, in <toplevel>
                deps = make_deps(DEPS_ALLOW_RULES, DEPS_PROVIDERS, DEPS_ASPECTS),
        File "/usr/local/google/home/cpovirk/.cache/bazel/_bazel_cpovirk/63abd04538d973afcb7c178098cdeca1/external/rules_android+/rules/android_binary/attrs.bzl", line 35, column 27, in make_deps
                return attr.label_list(
Error in label_list: at index 0 of providers, got element of type NoneType, want Provider
WARNING: Target pattern parsing failed.
ERROR: Skipping '@google_bazel_common_maven//:pin': error loading package '@@rules_jvm_external++maven+google_bazel_common_maven//': at /usr/local/google/home/cpovirk/.cache/bazel/_bazel_cpovirk/63abd04538d973afcb7c178098cdeca1/external/rules_android+/rules/rules.bzl:45:5: at /usr/local/google/home/cpovirk/.cache/bazel/_bazel_cpovirk/63abd04538d973afcb7c178098cdeca1/external/rules_android+/rules/android_binary/rule.bzl:25:6: initialization of module 'rules/android_binary/attrs.bzl' failed
```
RELNOTES=n/a
PiperOrigin-RevId: 874736106
@copybara-service copybara-service bot merged commit 4380e15 into master Feb 24, 2026
@copybara-service copybara-service bot deleted the test_874203176 branch February 24, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant