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

Commit 9847621

Browse files
authored
Pin versions of dependencies in preparation for release. (#357)
* Not googletest version, it's still broken with cmake. * Add com_google_googleapis to pin_deps.
1 parent c43dcef commit 9847621

File tree

3 files changed

+28
-19
lines changed

3 files changed

+28
-19
lines changed

WORKSPACE

Lines changed: 24 additions & 16 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 = "ee568c74d4d94795dd0c17cee0a5ed30383fe53119cf191d8b68e626e0ed6bf6",
23+
strip_prefix = "abseil-cpp-f3840bc5e33ce4932e35986cf3718450c6f02af2",
24+
urls = ["https://github.com/abseil/abseil-cpp/archive/f3840bc5e33ce4932e35986cf3718450c6f02af2.zip"], # 2019-07-19T17:04:45Z
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 = "c53f3770c9c008ba208a20770c8af2e81fa5b29bfd688a6e7e63c7dad625cac7",
32+
strip_prefix = "googletest-b77e5c76252bac322bb82c5b444f050bd0d92451",
33+
urls = ["https://github.com/google/googletest/archive/b77e5c76252bac322bb82c5b444f050bd0d92451.zip"], # 2019-07-18T19:27:51Z
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 = "dedc0f15e654b42d4036768c33d7f2ab5c3020939f0be052ae0a0b76a4830e62",
41+
strip_prefix = "benchmark-8e48105d465c586068dd8e248fe75a8971c6ba3a",
42+
urls = ["https://github.com/google/benchmark/archive/8e48105d465c586068dd8e248fe75a8971c6ba3a.zip"], # 2019-07-22T12:42:12Z
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 = "54130a7fa3dae57ed148f24cddcc91ff56e8023ed3d1e44cff4e1a922406087d",
49+
strip_prefix = "grpc-809e7c951358a80182d7126b255c3a40881fb3fa",
50+
urls = ["https://github.com/grpc/grpc/archive/809e7c951358a80182d7126b255c3a40881fb3fa.zip"], # 2019-07-23T00:43:25Z
4751
)
4852

4953
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
@@ -59,8 +63,9 @@ local_repository(
5963
# Prometheus client library - used by Prometheus exporter.
6064
http_archive(
6165
name = "com_github_jupp0r_prometheus_cpp",
62-
strip_prefix = "prometheus-cpp-master",
63-
urls = ["https://github.com/jupp0r/prometheus-cpp/archive/master.zip"],
66+
sha256 = "040653580faea4d10a3fc617f1276ce32d3e9d48277e8bf701a317d34d5f8e29",
67+
strip_prefix = "prometheus-cpp-d83dd68e496e024ae0f1f0c19ac2ab0d27330330",
68+
urls = ["https://github.com/jupp0r/prometheus-cpp/archive/d83dd68e496e024ae0f1f0c19ac2ab0d27330330.zip"], # 2019-07-03T18:56:43Z
6469
)
6570

6671
load("@com_github_jupp0r_prometheus_cpp//:repositories.bzl", "load_civetweb")
@@ -105,8 +110,9 @@ cc_library(
105110
visibility = ["//visibility:public"],
106111
)
107112
""",
108-
strip_prefix = "curl-master",
109-
urls = ["https://github.com/curl/curl/archive/master.zip"],
113+
sha256 = "1fa557287b6702fc2104c48eb7d4a9e66fe509d68de23425f577ef1f2e001c29",
114+
strip_prefix = "curl-23c99f60babd64164776c8bef1525fa411f8bed1",
115+
urls = ["https://github.com/curl/curl/archive/23c99f60babd64164776c8bef1525fa411f8bed1.zip"], # 2019-07-21T22:28:55Z
110116
)
111117

112118
# Rapidjson library - used by zipkin exporter.
@@ -126,15 +132,17 @@ cc_library(
126132
visibility = ["//visibility:public"],
127133
)
128134
""",
129-
strip_prefix = "rapidjson-master",
130-
urls = ["https://github.com/Tencent/rapidjson/archive/master.zip"],
135+
sha256 = "5428830eae1e19d0436e64b214c727aab4a33379129cdede11b0507974ad134f",
136+
strip_prefix = "rapidjson-d87b698d0fcc10a5f632ecbc80a9cb2a8fa094a5",
137+
urls = ["https://github.com/Tencent/rapidjson/archive/d87b698d0fcc10a5f632ecbc80a9cb2a8fa094a5.zip"], # 2019-06-28T02:37:13Z
131138
)
132139

133140
# Google APIs - used by Stackdriver exporter.
134141
http_archive(
135142
name = "com_google_googleapis",
136-
strip_prefix = "googleapis-master",
137-
urls = ["https://github.com/googleapis/googleapis/archive/master.zip"],
143+
sha256 = "150be57ff83646e5652e03683c949f0830d9a0e73ef787786864210e45537fe0",
144+
strip_prefix = "googleapis-6e3b55e26bf5a9f7874b6ba1411a0cc50cb87a48",
145+
urls = ["https://github.com/googleapis/googleapis/archive/6e3b55e26bf5a9f7874b6ba1411a0cc50cb87a48.zip"], # 2019-07-23T00:01:26Z
138146
)
139147

140148
load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")

cmake/OpenCensusDeps.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ FetchContent_Declare(googletest
1919
GIT_TAG ed2fe122f8dc9aca844d724986d1d5cf5b65ea4e)
2020
FetchContent_Declare(abseil
2121
GIT_REPOSITORY https://github.com/abseil/abseil-cpp
22-
GIT_TAG 2c8421e1c6cef0da9e8a20b01c15256ec9ec116d)
22+
GIT_TAG f3840bc5e33ce4932e35986cf3718450c6f02af2)
2323
FetchContent_Declare(prometheus
2424
GIT_REPOSITORY https://github.com/jupp0r/prometheus-cpp
25-
GIT_TAG master)
25+
GIT_TAG d83dd68e496e024ae0f1f0c19ac2ab0d27330330)
2626
FetchContent_Declare(benchmark
2727
GIT_REPOSITORY https://github.com/google/benchmark
28-
GIT_TAG master)
28+
GIT_TAG 8e48105d465c586068dd8e248fe75a8971c6ba3a)
2929

3030
FetchContent_GetProperties(googletest)
3131
if(BUILD_TESTING)

tools/pin_deps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def workspace_rule(self):
5757
GitHubProject('com_github_jupp0r_prometheus_cpp', 'jupp0r', 'prometheus-cpp'),
5858
GitHubProject('com_github_curl', 'curl', 'curl'),
5959
GitHubProject('com_github_tencent_rapidjson', 'Tencent', 'rapidjson'),
60+
GitHubProject('com_google_googleapis', 'googleapis', 'googleapis'),
6061
]
6162

6263
for project in PROJECTS:

0 commit comments

Comments
 (0)