Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 49453c5

Browse files
authored
Fix the build: remap prometheus's import of zlib to match gRPC's. (#236)
1 parent 0ecb2fe commit 49453c5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Needed by gRPC to build on some platforms.
55
build --copt -DGRPC_BAZEL_BUILD
66

7+
common --experimental_enable_repo_mapping
8+
79
# --config=asan : Address Sanitizer.
810
common:asan --copt -fsanitize=address
911
common:asan --copt -DADDRESS_SANITIZER

WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ bind(
6262
# Prometheus client library - used by Prometheus exporter.
6363
http_archive(
6464
name = "com_github_jupp0r_prometheus_cpp",
65+
repo_mapping = {"@net_zlib_zlib": "@com_github_madler_zlib"},
6566
strip_prefix = "prometheus-cpp-master",
6667
urls = ["https://github.com/jupp0r/prometheus-cpp/archive/master.zip"],
6768
)

0 commit comments

Comments
 (0)