Skip to content

Commit 5499b2a

Browse files
jsing-canvaaignas
authored andcommitted
fix: make CI pass with the next version of Bazel (9.0.0rc1) (bazel-contrib#3393)
Explicitly load CcToolchainConfigInfo in the fake cc toolchain config. For examples/bzlmod, bump rules_rust to a newer version so that it pulls in dependencies that work correctly with Bazel 9.0.0rc1. Work towards bazel-contrib#3392 (cherry picked from commit 49b6630)
1 parent 09e92f4 commit 5499b2a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/bzlmod/MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ bazel_dep(name = "rules_java", version = "8.3.1")
2323
# MODULE.bazel.lock is cross-platform friendly, and there are transitive
2424
# dependencies on rules_rust, so we need rules_rust 0.54.1+ where such issues
2525
# were fixed.
26-
bazel_dep(name = "rules_rust", version = "0.54.1")
26+
bazel_dep(name = "rules_rust", version = "0.67.0")
2727

2828
# We next initialize the python toolchain using the extension.
2929
# You can set different Python versions in this block.

tests/support/cc_toolchains/fake_cc_toolchain_config.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""Fake for providing CcToolchainConfigInfo."""
1616

1717
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
18+
load("@rules_cc//cc/toolchains:cc_toolchain_config_info.bzl", "CcToolchainConfigInfo")
1819

1920
def _impl(ctx):
2021
return cc_common.create_cc_toolchain_config_info(

0 commit comments

Comments
 (0)