Skip to content

Fix Kythe workflow for Bazel 8+: load proto_lang_toolchain from rules…#11366

Merged
dan-stowell merged 1 commit intomasterfrom
bbdan-fix-kythe
Feb 20, 2026
Merged

Fix Kythe workflow for Bazel 8+: load proto_lang_toolchain from rules…#11366
dan-stowell merged 1 commit intomasterfrom
bbdan-fix-kythe

Conversation

@dan-stowell
Copy link
Contributor

…_proto

Bazel 8+ removed proto_lang_toolchain as a native rule, breaking the Kythe release BUILD file which uses it without a load() statement. This caused the entire Kythe package to fail to load, making all extract_kzip_* action listeners unavailable and failing analysis on every target in the build.

Patch the Kythe BUILD file at checkout time to add the required load() statement, and ensure the Kythe MODULE.bazel declares rules_proto as a dependency for the local_path_override code path.

TODO: Update the BUILD and MODULE.bazel in https://github.com/buildbuddy-io/kythe, cut a new release, and update kytheDownloadURL in config.go so this runtime patching is no longer needed.

…_proto

Bazel 8+ removed proto_lang_toolchain as a native rule, breaking the
Kythe release BUILD file which uses it without a load() statement.
This caused the entire Kythe package to fail to load, making all
extract_kzip_* action listeners unavailable and failing analysis on
every target in the build.

Patch the Kythe BUILD file at checkout time to add the required load()
statement, and ensure the Kythe MODULE.bazel declares rules_proto as
a dependency for the local_path_override code path.

TODO: Update the BUILD and MODULE.bazel in https://github.com/buildbuddy-io/kythe,
cut a new release, and update kytheDownloadURL in config.go so this
runtime patching is no longer needed.

Co-authored-by: Shelley <shelley@exe.dev>
@dan-stowell dan-stowell merged commit 2869e47 into master Feb 20, 2026
12 of 13 checks passed
@dan-stowell dan-stowell deleted the bbdan-fix-kythe branch February 20, 2026 19:24
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.

3 participants