deps: add `protobuf` to deps, needed by `rules_cc` 0.0.13

This commit is contained in:
Rahul Butani 2024-10-11 14:48:27 -07:00
parent f1c48961ab
commit 329bde6de6
No known key found for this signature in database
1 changed files with 12 additions and 0 deletions

View File

@ -24,6 +24,18 @@ def bazel_toolchain_dependencies():
strip_prefix = "rules_cc-55fc267d2f16fcb5ff39bc73bd7a920a72cd25a6",
)
# Load protobuf if the user has not defined it; this is a dep needed by
# `rules_cc`: https://github.com/bazelbuild/rules_cc/blob/55fc267d2f16fcb5ff39bc73bd7a920a72cd25a6/WORKSPACE#L45-L50
if not native.existing_rule("protobuf"):
http_archive(
name = "protobuf",
sha256 = "da288bf1daa6c04d03a9051781caa52aceb9163586bff9aa6cfb12f69b9395aa",
strip_prefix = "protobuf-27.0",
url = "https://github.com/protocolbuffers/protobuf/releases/download/v27.0/protobuf-27.0.tar.gz",
)
# Load bazel_skylib if the user has not defined them.
if not native.existing_rule("bazel_skylib"):
http_archive(