@@ -58,7 +58,7 @@ http_archive(
5858
5959# LINT.IfChange(snappy_archive_version)
6060http_archive (
61- name = "snappy " ,
61+ name = "s2t_snappy " ,
6262 build_file = "//third_party:snappy.BUILD" ,
6363 sha256 = "16b677f07832a612b0836178db7f374e414f94657c138e6993cbfc5dcc58651f" ,
6464 strip_prefix = "snappy-1.1.8" ,
@@ -83,48 +83,22 @@ http_archive(
8383# https://github.com/protocolbuffers/protobuf/tree/v3.8.0
8484PROTOBUF_COMMIT = "09745575a923640154bcf307fba8aedff47f240a"
8585
86- # Needed by tf_py_wrap_cc rule from Tensorflow.
87- # When upgrading tensorflow version, also check tensorflow/WORKSPACE for the
88- # version of this -- keep in sync.
89- # NOTE: tensorflow-serving uses:
90- # = "2c62d8cd4ab1e65c08647eb4afe38f51591f43f7f0885e7769832fa137633dcb",
91-
92- git_repository (
93- name = "com_google_protobuf" ,
94- commit = PROTOBUF_COMMIT ,
95- remote = "https://github.com/google/protobuf.git" ,
96- shallow_since = "1558721209 -0700" ,
97- )
98-
99-
86+ # This is needed by the version of tensorflow metadata we depend on.
87+ # TODO(andylou): remove this once com_github_tensorflow_metadata is updated.
10088git_repository (
10189 name = "protobuf_archive" ,
10290 commit = PROTOBUF_COMMIT ,
10391 remote = "https://github.com/google/protobuf.git" ,
10492 shallow_since = "1558721209 -0700" ,
10593)
10694
107- load ("@com_google_protobuf//:protobuf_deps.bzl" , "protobuf_deps" )
108-
109- protobuf_deps ()
110-
111-
112-
113- # Fetch tf.Metadata repo from GitHub.
114- git_repository (
115- name = "com_github_tensorflow_metadata" ,
116- commit = "8452a799153412972a4fbf00b9a019db23ef60f9" ,
117- remote = "https://github.com/tensorflow/metadata.git" ,
118- )
119-
120-
12195#####################################################################################
12296
123- _TENSORFLOW_GIT_COMMIT = "e5bf8de410005de06a7ff5393fafdf832ef1d4ad " # 2.1 .0
97+ _TENSORFLOW_GIT_COMMIT = "2b96f3662bd776e277f86997659e61046b56c315 " # 2.2 .0
12498
12599http_archive (
126100 name = "org_tensorflow" ,
127- sha256 = "1f4b09e6bff7f847bb1034699076055e50e87534d76008af8295ed71195b2b36 " ,
101+ sha256 = "b3d7829fac84e3a26264d84057367730b6b85b495a0fce15929568f4b55dc144 " ,
128102 urls = [
129103 "https://mirror.bazel.build/github.com/tensorflow/tensorflow/archive/%s.tar.gz" % _TENSORFLOW_GIT_COMMIT ,
130104 "https://github.com/tensorflow/tensorflow/archive/%s.tar.gz" % _TENSORFLOW_GIT_COMMIT ,
@@ -135,7 +109,6 @@ http_archive(
135109# START: Upstream TensorFlow dependencies
136110# TensorFlow build depends on these dependencies.
137111# Needs to be in-sync with TensorFlow sources.
138-
139112http_archive (
140113 name = "io_bazel_rules_closure" ,
141114 sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9" ,
@@ -145,23 +118,17 @@ http_archive(
145118 "https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz" , # 2019-06-13
146119 ],
147120)
148-
149- http_archive (
150- name = "bazel_skylib" ,
151- sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0" ,
152- urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/0.9.0/bazel-skylib.0.9.0.tar.gz" ],
153- ) # https://github.com/bazelbuild/bazel-skylib/releases
154-
155121# END: Upstream TensorFlow dependencies
156122
157-
158123# Please add all new TensorFlow struct2tensor dependencies in workspace.bzl.
159124load ("//struct2tensor:workspace.bzl" , "struct2tensor_workspace" )
160-
161125struct2tensor_workspace ()
162126
127+ load ("@com_google_protobuf//:protobuf_deps.bzl" , "protobuf_deps" )
128+ protobuf_deps ()
129+
163130# Specify the minimum required bazel version.
164131load ("@org_tensorflow//tensorflow:version_check.bzl" , "check_bazel_version_at_least" )
165132
166- check_bazel_version_at_least ("0.24.1 " )
133+ check_bazel_version_at_least ("2.0.0 " )
167134
0 commit comments