Skip to content

Upgrade to Bazel 9.0.1 LTS - #32

Merged
bpalermo merged 4 commits into
mainfrom
bazel-9-upgrade
Mar 21, 2026
Merged

bpalermo merged 4 commits into
mainfrom
bazel-9-upgrade

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Summary

  • Upgrade Bazel from 8.6.0 to 9.0.1 LTS
  • Bump protobuf 34.0 → 34.1 to fix missing CcToolchainConfigInfo import in cc_toolchain_config.bzl
  • Bump protovalidate 1.0.0 → 1.1.1 to fix cc_proto_library no longer being auto-loaded in Bazel 9
  • Pin aspect_bazel_lib 2.22.5 and rules_foreign_cc 0.15.1 as explicit transitive deps of rules_img to fix removed incompatible_use_toolchain_transition rule kwarg (can be dropped once bazel-contrib/rules_img#431 is released)

Test plan

  • bazel build //... passes
  • bazel test //... — 17/17 unit tests pass, 2 integration tests fail due to missing Docker (expected in sandboxed env), 2 image tests skipped

🤖 Generated with Claude Code

bpalermo and others added 4 commits March 21, 2026 18:32
Bump Bazel from 8.6.0 to 9.0.1 and update dependencies for compatibility:
- protobuf 34.0 → 34.1 (missing CcToolchainConfigInfo import)
- protovalidate 1.0.0 → 1.1.1 (cc_proto_library no longer auto-loaded)
- Pin aspect_bazel_lib 2.22.5 and rules_foreign_cc 0.15.1 as explicit
  transitive deps of rules_img to fix removed
  incompatible_use_toolchain_transition kwarg

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
The transitive rules_android 0.6.4 fails to load CcInfo from rules_cc
in android_local_test/attrs.bzl on Bazel 9.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@bpalermo
bpalermo merged commit 7ad4109 into main Mar 21, 2026
6 checks passed
@bpalermo
bpalermo deleted the bazel-9-upgrade branch March 21, 2026 21:57
bpalermo added a commit that referenced this pull request Oct 4, 2026
#1210)

Clears Dependabot alerts #32, #33 and #34 (website/requirements_lock.txt):
GHSA-8988-9cw3-xx77 (high), GHSA-vxq7-64xx-v4gw (high) and
GHSA-gh4c-6fx4-qh6g (moderate), all fixed in urllib3 2.8.0.

urllib3 is transitive via mkdocs-material -> requests and only reaches
//website:{build_site,mkdocs,site,site_test}; no go_binary or image does.
Floored in requirements.in, as #768 did for pymdown-extensions, so a lock
regeneration cannot drop the fix. The lock was regenerated with
`uv pip compile --upgrade-package urllib3`: urllib3 is the only package
that moved.


Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Co-authored-by: Claude Fable 5.1 <[email protected]>
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