Skip to content

Commit

Permalink
WIP: Bzlmod part the one hundred thirty-fourth
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mbland committed Dec 11, 2024
1 parent 6a8f03a commit e89e12d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@ SCALA_3_VERSIONS = [
SCALA_VERSIONS = SCALA_2_VERSIONS + SCALA_3_VERSIONS

bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_cc", version = "0.0.10")

# Bazel 6 breaks with any higher version of `rules_cc`, because:
# - 0.0.10 requires Bazel 7 to define `CcSharedLibraryHintInfo`
# - 0.0.13 and up don't support `protobuf` v21.7, requiring at least v27.0
# - 0.1.0 should work, but requires `stardoc` 0.7.0, which requires Bazel 7
# (though it's a `dev_dependency`, it still gets pulled in during analysis,
# breaking the build)
bazel_dep(name = "rules_cc")
single_version_override(
module_name = "rules_cc",
version = "0.0.9",
)

bazel_dep(name = "rules_java", version = "7.12.3")
bazel_dep(name = "rules_proto", version = "6.0.2")

Expand Down

0 comments on commit e89e12d

Please sign in to comment.