From d4fb28dddb41897a77e47f61f545e5e43e472b42 Mon Sep 17 00:00:00 2001 From: kubov Date: Mon, 15 Apr 2019 17:07:40 +0000 Subject: [PATCH 1/2] Update README.md example. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6075d836..2debd974 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ this repo to your project as a dependency. Just add the following to your `WORKSPACE`: ```python +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") http_archive( name = "com_github_jupp0r_prometheus_cpp", strip_prefix = "prometheus-cpp-master", @@ -119,7 +120,7 @@ demonstrated with the sample server included in this repository: cc_binary( name = "sample_server", srcs = ["sample_server.cc"], - deps = ["@com_github_jupp0r_prometheus_cpp//:pull"], + deps = ["@com_github_jupp0r_prometheus_cpp//pull:pull"], ) ``` From eebccaadaaadebc1bb696f5aafc1fdc2c91898be Mon Sep 17 00:00:00 2001 From: kubov Date: Mon, 15 Apr 2019 17:45:07 +0000 Subject: [PATCH 2/2] Simplify deps definition in the example. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2debd974..b85101a5 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ demonstrated with the sample server included in this repository: cc_binary( name = "sample_server", srcs = ["sample_server.cc"], - deps = ["@com_github_jupp0r_prometheus_cpp//pull:pull"], + deps = ["@com_github_jupp0r_prometheus_cpp//pull"], ) ```