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

Commit

Permalink
Pin versions of dependencies in preparation for release. (#273)
Browse files Browse the repository at this point in the history
Requested in #250 and #130.
  • Loading branch information
g-easy authored Jan 31, 2019
1 parent 9d2014b commit a512f25
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 17 deletions.
35 changes: 21 additions & 14 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,35 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# We depend on Abseil.
http_archive(
name = "com_google_absl",
strip_prefix = "abseil-cpp-master",
urls = ["https://github.com/abseil/abseil-cpp/archive/master.zip"],
sha256 = "41407f630af76558a6da99f46a573eca108399aaff8905dfe7468cf0e904310c",
strip_prefix = "abseil-cpp-540e2537b92cd4abfae6ceddfe24304345461f32",
urls = ["https://github.com/abseil/abseil-cpp/archive/540e2537b92cd4abfae6ceddfe24304345461f32.zip"],
)

# GoogleTest framework.
# Only needed for tests, not to build the OpenCensus library.
http_archive(
name = "com_google_googletest",
strip_prefix = "googletest-master",
urls = ["https://github.com/google/googletest/archive/master.zip"],
sha256 = "72b93443943961eac7d28bbe6b303cb11cc7be63678e617c9bdeb6603f89161f",
strip_prefix = "googletest-e04254989d262ad453ebd4f5cf07474014d81d52",
urls = ["https://github.com/google/googletest/archive/e04254989d262ad453ebd4f5cf07474014d81d52.zip"],
)

# Google Benchmark library.
# Only needed for benchmarks, not to build the OpenCensus library.
http_archive(
name = "com_github_google_benchmark",
strip_prefix = "benchmark-master",
urls = ["https://github.com/google/benchmark/archive/master.zip"],
sha256 = "dadf44f5c4a4714a169ddb54e80d82cdc8bbe05e4b1ee4839dc645ed03ebb6bc",
strip_prefix = "benchmark-785e2c3158589e8ef48c59ba80e48d76bdbd8902",
urls = ["https://github.com/google/benchmark/archive/785e2c3158589e8ef48c59ba80e48d76bdbd8902.zip"],
)

# gRPC
http_archive(
name = "com_github_grpc_grpc",
strip_prefix = "grpc-master",
urls = ["https://github.com/grpc/grpc/archive/master.tar.gz"],
sha256 = "a439405b5691ad3f168f31a91db91cbab493e59502aa0893a7f5b6d95b59a663",
strip_prefix = "grpc-8860eb34ab9183589a039a36a6e10a74b440c501",
urls = ["https://github.com/grpc/grpc/archive/8860eb34ab9183589a039a36a6e10a74b440c501.tar.gz"],
)

load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
Expand All @@ -70,8 +74,9 @@ local_repository(
# Prometheus client library - used by Prometheus exporter.
http_archive(
name = "com_github_jupp0r_prometheus_cpp",
strip_prefix = "prometheus-cpp-master",
urls = ["https://github.com/jupp0r/prometheus-cpp/archive/master.zip"],
sha256 = "f24cb2a2d25bc31782e6424d20d8361563449b249be64f7c438e48f4efa741b7",
strip_prefix = "prometheus-cpp-e9b8a774bb18ec8e432c7e943516d990a5abcd47",
urls = ["https://github.com/jupp0r/prometheus-cpp/archive/e9b8a774bb18ec8e432c7e943516d990a5abcd47.zip"],
)

load("@com_github_jupp0r_prometheus_cpp//:repositories.bzl", "load_civetweb")
Expand Down Expand Up @@ -116,8 +121,9 @@ cc_library(
visibility = ["//visibility:public"],
)
""",
strip_prefix = "curl-master",
urls = ["https://github.com/curl/curl/archive/master.zip"],
sha256 = "3140ec1663cad975a38da9fce606fd80ca5978f89e87fc992c8fcd66cab0d1e4",
strip_prefix = "curl-06f744d447af6648a00f0571116b5b901854abc4",
urls = ["https://github.com/curl/curl/archive/06f744d447af6648a00f0571116b5b901854abc4.zip"],
)

# Rapidjson library - used by zipkin exporter.
Expand All @@ -138,6 +144,7 @@ cc_library(
visibility = ["//visibility:public"],
)
""",
strip_prefix = "rapidjson-master",
urls = ["https://github.com/Tencent/rapidjson/archive/master.zip"],
sha256 = "e3feb9d5f26de688d058056187a6901e89df0d4d1602fb3965455186c1e30df3",
strip_prefix = "rapidjson-bfdcf4911047688fec49014d575433e2e5eb05be",
urls = ["https://github.com/Tencent/rapidjson/archive/bfdcf4911047688fec49014d575433e2e5eb05be.zip"],
)
2 changes: 1 addition & 1 deletion cmake/abseil.CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ project(abseil-download NONE)
include(ExternalProject)
externalproject_add(abseil_project
GIT_REPOSITORY https://github.com/abseil/abseil-cpp
GIT_TAG "master"
GIT_TAG "540e2537b92cd4abfae6ceddfe24304345461f32"
SOURCE_DIR "${CMAKE_BINARY_DIR}/abseil-src"
BINARY_DIR "${CMAKE_BINARY_DIR}/abseil-build"
UPDATE_COMMAND ""
Expand Down
2 changes: 1 addition & 1 deletion cmake/googletest.CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ project(googletest-download NONE)
include(ExternalProject)
externalproject_add(googletest_project
GIT_REPOSITORY https://github.com/abseil/googletest
GIT_TAG "master"
GIT_TAG "e04254989d262ad453ebd4f5cf07474014d81d52"
SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src"
BINARY_DIR "${CMAKE_BINARY_DIR}/googletest-build"
UPDATE_COMMAND ""
Expand Down
2 changes: 1 addition & 1 deletion cmake/prometheus-cpp.CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ project(prometheus-cpp-download NONE)
include(ExternalProject)
externalproject_add(prometheus_cpp_project
GIT_REPOSITORY https://github.com/jupp0r/prometheus-cpp
GIT_TAG "master"
GIT_TAG "e9b8a774bb18ec8e432c7e943516d990a5abcd47"
SOURCE_DIR "${CMAKE_BINARY_DIR}/prometheus-src"
BINARY_DIR "${CMAKE_BINARY_DIR}/prometheus-build"
UPDATE_COMMAND ""
Expand Down

0 comments on commit a512f25

Please sign in to comment.