Skip to content

Commit 329bde6

Browse files
committed
deps: add protobuf to deps, needed by rules_cc 0.0.13
1 parent f1c4896 commit 329bde6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

toolchain/deps.bzl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ def bazel_toolchain_dependencies():
2424
strip_prefix = "rules_cc-55fc267d2f16fcb5ff39bc73bd7a920a72cd25a6",
2525
)
2626

27+
# Load protobuf if the user has not defined it; this is a dep needed by
28+
# `rules_cc`: https://github.com/bazelbuild/rules_cc/blob/55fc267d2f16fcb5ff39bc73bd7a920a72cd25a6/WORKSPACE#L45-L50
29+
if not native.existing_rule("protobuf"):
30+
http_archive(
31+
name = "protobuf",
32+
sha256 = "da288bf1daa6c04d03a9051781caa52aceb9163586bff9aa6cfb12f69b9395aa",
33+
strip_prefix = "protobuf-27.0",
34+
url = "https://github.com/protocolbuffers/protobuf/releases/download/v27.0/protobuf-27.0.tar.gz",
35+
)
36+
37+
38+
2739
# Load bazel_skylib if the user has not defined them.
2840
if not native.existing_rule("bazel_skylib"):
2941
http_archive(

0 commit comments

Comments
 (0)