Skip to content

Commit e89e12d

Browse files
committed
WIP: Bzlmod part the one hundred thirty-fourth
Restore Bazel 6 compatibility via `rules_cc` 0.0.9 It turns out `rules_cc` 0.0.10, which the build graph would resolve to, breaks Bzlmod under Bazel 6.5.0. It depends on `stardoc` 0.7.0, which requires Bazel 7.
1 parent 6a8f03a commit e89e12d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

MODULE.bazel

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,19 @@ SCALA_3_VERSIONS = [
2424
SCALA_VERSIONS = SCALA_2_VERSIONS + SCALA_3_VERSIONS
2525

2626
bazel_dep(name = "bazel_skylib", version = "1.7.1")
27-
bazel_dep(name = "rules_cc", version = "0.0.10")
27+
28+
# Bazel 6 breaks with any higher version of `rules_cc`, because:
29+
# - 0.0.10 requires Bazel 7 to define `CcSharedLibraryHintInfo`
30+
# - 0.0.13 and up don't support `protobuf` v21.7, requiring at least v27.0
31+
# - 0.1.0 should work, but requires `stardoc` 0.7.0, which requires Bazel 7
32+
# (though it's a `dev_dependency`, it still gets pulled in during analysis,
33+
# breaking the build)
34+
bazel_dep(name = "rules_cc")
35+
single_version_override(
36+
module_name = "rules_cc",
37+
version = "0.0.9",
38+
)
39+
2840
bazel_dep(name = "rules_java", version = "7.12.3")
2941
bazel_dep(name = "rules_proto", version = "6.0.2")
3042

0 commit comments

Comments
 (0)