diff options
author | 2018-08-14 05:31:58 -0400 | |
---|---|---|
committer | 2018-08-14 05:31:58 -0400 | |
commit | c521738635ed5c50e31be2e87305e49c7dfeb601 (patch) | |
tree | a99e474091dbb7ce7f992feb9e5d6ea8a777a043 /tensorflow/workspace.bzl | |
parent | 60ea4be9ac3bdbee55dee9b011b151971dfae5ad (diff) |
workspace
Diffstat (limited to 'tensorflow/workspace.bzl')
-rwxr-xr-x | tensorflow/workspace.bzl | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl index 67beb17978..2cf1c86395 100755 --- a/tensorflow/workspace.bzl +++ b/tensorflow/workspace.bzl @@ -359,14 +359,18 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""): }, ) + PROTOBUF_urls =[ + "https://mirror.bazel.build/github.com/google/protobuf/archive/fe2eef4bf414ebb352cf11bcec633f1fd46ec876.tar.gz", + "https://github.com/google/protobuf/archive/fe2eef4bf414ebb352cf11bcec633f1fd46ec876.tar.gz", + ] + PROTOBUF_sha256 = "b91b0ac9907af983877c960809dcad7a6dc8e4b06e34d32b7d66a12b9ea1fa17" + PROTOBUF_strip_prefix = "protobuf-fe2eef4bf414ebb352cf11bcec633f1fd46ec876" + tf_http_archive( name = "protobuf_archive", - urls = [ - "https://mirror.bazel.build/github.com/google/protobuf/archive/fe2eef4bf414ebb352cf11bcec633f1fd46ec876.tar.gz", - "https://github.com/google/protobuf/archive/fe2eef4bf414ebb352cf11bcec633f1fd46ec876.tar.gz", - ], - sha256 = "b91b0ac9907af983877c960809dcad7a6dc8e4b06e34d32b7d66a12b9ea1fa17", - strip_prefix = "protobuf-fe2eef4bf414ebb352cf11bcec633f1fd46ec876", + urls = PROTOBUF_urls, + sha256 = PROTOBUF_sha256, + strip_prefix = PROTOBUF_strip_prefix, ) # We need to import the protobuf library under the names com_google_protobuf @@ -374,22 +378,16 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""): # Unfortunately there is no way to alias http_archives at the moment. tf_http_archive( name = "com_google_protobuf", - urls = [ - "https://mirror.bazel.build/github.com/google/protobuf/archive/fe2eef4bf414ebb352cf11bcec633f1fd46ec876.tar.gz", - "https://github.com/google/protobuf/archive/fe2eef4bf414ebb352cf11bcec633f1fd46ec876.tar.gz", - ], - sha256 = "b91b0ac9907af983877c960809dcad7a6dc8e4b06e34d32b7d66a12b9ea1fa17", - strip_prefix = "protobuf-fe2eef4bf414ebb352cf11bcec633f1fd46ec876", + urls = PROTOBUF_urls, + sha256 = PROTOBUF_sha256, + strip_prefix = PROTOBUF_strip_prefix, ) tf_http_archive( name = "com_google_protobuf_cc", - urls = [ - "https://mirror.bazel.build/github.com/google/protobuf/archive/fe2eef4bf414ebb352cf11bcec633f1fd46ec876.tar.gz", - "https://github.com/google/protobuf/archive/fe2eef4bf414ebb352cf11bcec633f1fd46ec876.tar.gz", - ], - sha256 = "b91b0ac9907af983877c960809dcad7a6dc8e4b06e34d32b7d66a12b9ea1fa17", - strip_prefix = "protobuf-fe2eef4bf414ebb352cf11bcec633f1fd46ec876", + urls = PROTOBUF_urls, + sha256 = PROTOBUF_sha256, + strip_prefix = PROTOBUF_strip_prefix, ) tf_http_archive( |