Skip to content

Add support for Bazel 9.x#134

Merged
pkwarren merged 2 commits into
mainfrom
pkw/support-bazel-9
Apr 27, 2026
Merged

Add support for Bazel 9.x#134
pkwarren merged 2 commits into
mainfrom
pkw/support-bazel-9

Conversation

@pkwarren
Copy link
Copy Markdown
Member

Bazel 9 removed the CcInfo symbol, which broke rules_buf on Bazel 9+ via the transitive dependency on rules_go. Bumps the two affected direct deps to the earliest releases that contain the fixes (rules_go 0.59.0, gazelle 0.40.0) and extends CI to cover 9.x.

The gazelle update bump picks up bazel-contrib/bazel-gazelle#1321, so the affected gazelle/buf/testdata/**/BUILD.out fixtures are updated.

Fixes #132.

Bazel 9 removed the `CcInfo` symbol, which broke `rules_buf` on Bazel
9+ via the transitive dependency on `rules_go`. Bumps the two affected
direct deps to the earliest releases that contain the fixes (rules_go
0.59.0, gazelle 0.40.0) and extends CI to cover 9.x.

The gazelle update bump picks up bazel-contrib/bazel-gazelle#1321, so
the affected `gazelle/buf/testdata/**/BUILD.out` fixtures are updated.

Fixes #132.
@@ -1,5 +1,5 @@
{
"lockFileVersion": 18,
"lockFileVersion": 11,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated all of these lock files to rebuild against Bazel 7.2.0 (declared in .bazelversion).

We probably need to fold this into a make tidy or make format command for consistency. Each time you run a build with a later version of Bazel, it rewrites these. For example, Bazel 9.1.0 writes lockFileVersion: 26.

Comment thread go.mod
@pkwarren pkwarren merged commit 5927657 into main Apr 27, 2026
8 checks passed
@pkwarren pkwarren deleted the pkw/support-bazel-9 branch April 27, 2026 18:48
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.

Broken on Bazel 9.0.1 with current rules_go version (0.42.0)

2 participants