You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Broken on Bazel 9.0.1 with current rules_go version (0.42.0) #132
A breaking change in Bazel v9 was the removal of symbols like CcInfo (--incompatible_autoload_externally is now set to an empty string).
A bug in 9.0.0 (caught in rc2 bazelbuild/bazel#27684) meant that some existing usages of these relocated symbols will surface as a different problem, or in the case of my transitive usage of rules_buf (via aspect_rules_lint) not be surfaced at all.
This gap was fixed in bazelbuild/bazel#28360, meaning rules_buf is broken in Bazel 9.0.1+.
...
ERROR: /home/runner/.bazel/external/rules_go+/go/private/rules/cgo.bzl:191:22: ␊
The CcInfo symbol has been removed, add the following to your BUILD/bzl file:
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
...
ERROR: /home/runner/work/vscode-git-monolithic-extension/vscode-git-monolithic-extension/extension/vsix/BUILD.bazel:15:15: ␊
While resolving toolchains for target //extension/vsix:copy_bundle_chunks (5c99fb7): ␊
invalid registered toolchain '@go_toolchains//:all': ␊
while parsing '@go_toolchains//:all': ␊
error loading package '@@rules_go++go_sdk+go_toolchains//': ␊
at /home/runner/.bazel/external/rules_go+/go/private/go_toolchain.bzl:20:6: ␊
at /home/runner/.bazel/external/rules_go+/go/private/actions/archive.bzl:34:5: ␊
compilation of module 'go/private/rules/cgo.bzl' failed
ERROR: Analysis of target '//extension/vsix:git_monolithic' failed; build aborted: Analysis failed
For those affected, this can be worked around by adding the following to MODULE.bazel.
Activity
Add support for Bazel 9.x (#134)