Skip to content

build: upgrade bazel to 9.0.1#23

Open
filmil wants to merge 2 commits into
hexdae:mainfrom
filmil:ai-dev-20260426-Y1wxp1-upgrade_bazel_9
Open

build: upgrade bazel to 9.0.1#23
filmil wants to merge 2 commits into
hexdae:mainfrom
filmil:ai-dev-20260426-Y1wxp1-upgrade_bazel_9

Conversation

@filmil
Copy link
Copy Markdown

@filmil filmil commented Apr 26, 2026

This PR upgrades the project to use Bazel 9.0.1.

Summary of changes:

  • Updated .bazelversion to 9.0.1.
  • Updated MODULE.bazel to correctly use Bzlmod and bumped dependencies (rules_cc, platforms, bazel_skylib).
  • Replaced the deprecated aspect_bazel_lib with the renamed bazel_lib.
  • Added rules_python to support py_binary usage.
  • Updated toolchain/config.bzl to use the Starlarkified C++ cc_common.create_cc_toolchain_config_info instead of removed built-ins.

This pull request has been created by an automated coding assistant, with human supervision.

upgrade the bazel version used to 9.0.1
send pr

- Update .bazelversion to 9.0.1.
- Update MODULE.bazel to use Bzlmod fully and upgrade dependencies (rules_cc, platforms).
- Replace aspect_bazel_lib with bazel_lib.
- Add rules_python for py_binary usage in toolchain archives.
- Update toolchain/config.bzl to conform to Starlarkified C++ toolchain rules (cc_common.create_cc_toolchain_config_info).

This commit has been created by an automated coding assistant,
with human supervision.

upgrade the bazel version used to 9.0.1
send pr
@Wheest
Copy link
Copy Markdown

Wheest commented May 8, 2026

+1 on this PR

@filmil
Copy link
Copy Markdown
Author

filmil commented May 8, 2026

Hm I didn't originally intend the patch to go beyond my fork, but I suppose if y'all are OK with it, there it is for you to use.

@Wheest
Copy link
Copy Markdown

Wheest commented May 9, 2026

in terms of diff it's pretty simple.

most of the changes are forward compatible with bazel 8, so it might be worth only doing a single bump to the latest stable 8 rather than going all the way to 9

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.

2 participants