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

Commit a512f25

Browse files
authored
Pin versions of dependencies in preparation for release. (#273)
Requested in #250 and #130.
1 parent 9d2014b commit a512f25

File tree

4 files changed

+24
-17
lines changed

4 files changed

+24
-17
lines changed

WORKSPACE

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,35 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1919
# We depend on Abseil.
2020
http_archive(
2121
name = "com_google_absl",
22-
strip_prefix = "abseil-cpp-master",
23-
urls = ["https://github.com/abseil/abseil-cpp/archive/master.zip"],
22+
sha256 = "41407f630af76558a6da99f46a573eca108399aaff8905dfe7468cf0e904310c",
23+
strip_prefix = "abseil-cpp-540e2537b92cd4abfae6ceddfe24304345461f32",
24+
urls = ["https://github.com/abseil/abseil-cpp/archive/540e2537b92cd4abfae6ceddfe24304345461f32.zip"],
2425
)
2526

2627
# GoogleTest framework.
2728
# Only needed for tests, not to build the OpenCensus library.
2829
http_archive(
2930
name = "com_google_googletest",
30-
strip_prefix = "googletest-master",
31-
urls = ["https://github.com/google/googletest/archive/master.zip"],
31+
sha256 = "72b93443943961eac7d28bbe6b303cb11cc7be63678e617c9bdeb6603f89161f",
32+
strip_prefix = "googletest-e04254989d262ad453ebd4f5cf07474014d81d52",
33+
urls = ["https://github.com/google/googletest/archive/e04254989d262ad453ebd4f5cf07474014d81d52.zip"],
3234
)
3335

3436
# Google Benchmark library.
3537
# Only needed for benchmarks, not to build the OpenCensus library.
3638
http_archive(
3739
name = "com_github_google_benchmark",
38-
strip_prefix = "benchmark-master",
39-
urls = ["https://github.com/google/benchmark/archive/master.zip"],
40+
sha256 = "dadf44f5c4a4714a169ddb54e80d82cdc8bbe05e4b1ee4839dc645ed03ebb6bc",
41+
strip_prefix = "benchmark-785e2c3158589e8ef48c59ba80e48d76bdbd8902",
42+
urls = ["https://github.com/google/benchmark/archive/785e2c3158589e8ef48c59ba80e48d76bdbd8902.zip"],
4043
)
4144

4245
# gRPC
4346
http_archive(
4447
name = "com_github_grpc_grpc",
45-
strip_prefix = "grpc-master",
46-
urls = ["https://github.com/grpc/grpc/archive/master.tar.gz"],
48+
sha256 = "a439405b5691ad3f168f31a91db91cbab493e59502aa0893a7f5b6d95b59a663",
49+
strip_prefix = "grpc-8860eb34ab9183589a039a36a6e10a74b440c501",
50+
urls = ["https://github.com/grpc/grpc/archive/8860eb34ab9183589a039a36a6e10a74b440c501.tar.gz"],
4751
)
4852

4953
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
@@ -70,8 +74,9 @@ local_repository(
7074
# Prometheus client library - used by Prometheus exporter.
7175
http_archive(
7276
name = "com_github_jupp0r_prometheus_cpp",
73-
strip_prefix = "prometheus-cpp-master",
74-
urls = ["https://github.com/jupp0r/prometheus-cpp/archive/master.zip"],
77+
sha256 = "f24cb2a2d25bc31782e6424d20d8361563449b249be64f7c438e48f4efa741b7",
78+
strip_prefix = "prometheus-cpp-e9b8a774bb18ec8e432c7e943516d990a5abcd47",
79+
urls = ["https://github.com/jupp0r/prometheus-cpp/archive/e9b8a774bb18ec8e432c7e943516d990a5abcd47.zip"],
7580
)
7681

7782
load("@com_github_jupp0r_prometheus_cpp//:repositories.bzl", "load_civetweb")
@@ -116,8 +121,9 @@ cc_library(
116121
visibility = ["//visibility:public"],
117122
)
118123
""",
119-
strip_prefix = "curl-master",
120-
urls = ["https://github.com/curl/curl/archive/master.zip"],
124+
sha256 = "3140ec1663cad975a38da9fce606fd80ca5978f89e87fc992c8fcd66cab0d1e4",
125+
strip_prefix = "curl-06f744d447af6648a00f0571116b5b901854abc4",
126+
urls = ["https://github.com/curl/curl/archive/06f744d447af6648a00f0571116b5b901854abc4.zip"],
121127
)
122128

123129
# Rapidjson library - used by zipkin exporter.
@@ -138,6 +144,7 @@ cc_library(
138144
visibility = ["//visibility:public"],
139145
)
140146
""",
141-
strip_prefix = "rapidjson-master",
142-
urls = ["https://github.com/Tencent/rapidjson/archive/master.zip"],
147+
sha256 = "e3feb9d5f26de688d058056187a6901e89df0d4d1602fb3965455186c1e30df3",
148+
strip_prefix = "rapidjson-bfdcf4911047688fec49014d575433e2e5eb05be",
149+
urls = ["https://github.com/Tencent/rapidjson/archive/bfdcf4911047688fec49014d575433e2e5eb05be.zip"],
143150
)

cmake/abseil.CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ project(abseil-download NONE)
1919
include(ExternalProject)
2020
externalproject_add(abseil_project
2121
GIT_REPOSITORY https://github.com/abseil/abseil-cpp
22-
GIT_TAG "master"
22+
GIT_TAG "540e2537b92cd4abfae6ceddfe24304345461f32"
2323
SOURCE_DIR "${CMAKE_BINARY_DIR}/abseil-src"
2424
BINARY_DIR "${CMAKE_BINARY_DIR}/abseil-build"
2525
UPDATE_COMMAND ""

cmake/googletest.CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ project(googletest-download NONE)
1919
include(ExternalProject)
2020
externalproject_add(googletest_project
2121
GIT_REPOSITORY https://github.com/abseil/googletest
22-
GIT_TAG "master"
22+
GIT_TAG "e04254989d262ad453ebd4f5cf07474014d81d52"
2323
SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src"
2424
BINARY_DIR "${CMAKE_BINARY_DIR}/googletest-build"
2525
UPDATE_COMMAND ""

cmake/prometheus-cpp.CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ project(prometheus-cpp-download NONE)
1919
include(ExternalProject)
2020
externalproject_add(prometheus_cpp_project
2121
GIT_REPOSITORY https://github.com/jupp0r/prometheus-cpp
22-
GIT_TAG "master"
22+
GIT_TAG "e9b8a774bb18ec8e432c7e943516d990a5abcd47"
2323
SOURCE_DIR "${CMAKE_BINARY_DIR}/prometheus-src"
2424
BINARY_DIR "${CMAKE_BINARY_DIR}/prometheus-build"
2525
UPDATE_COMMAND ""

0 commit comments

Comments
 (0)