From 57bd2fd0fac59fcdd5f6d15a05da35ef6d324367 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Wed, 22 Mar 2017 08:54:33 -0700 Subject: [PATCH] Assert Bazel version from tf_workspace() (#7799) * Assert Bazel version from tf_workspace() This ensures that projects depending on TensorFlow, e.g. TFServing, will benefit from the version check. The mandatory version has also been bumped up to Bazel 0.4.4 which has been out for 21 days. It includes numerous very important fixes. TensorFlow also appears to not work without it. * update version to 0.4.5 --- WORKSPACE | 7 +------ tensorflow/workspace.bzl | 4 ++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 9b7aeccdc71..e4f4c806bff 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -14,12 +14,7 @@ load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories") closure_repositories() -load("//tensorflow:workspace.bzl", "check_version", "tf_workspace") - -# We must check the bazel version before trying to parse any other BUILD files, -# in case the parsing of those build files depends on the bazel version we -# require here. -check_version("0.4.5") +load("//tensorflow:workspace.bzl", "tf_workspace") # Uncomment and update the paths in these entries to build the Android demo. #android_sdk_repository( diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl index 25aecb57075..4c4973080f4 100644 --- a/tensorflow/workspace.bzl +++ b/tensorflow/workspace.bzl @@ -64,6 +64,10 @@ temp_workaround_http_archive = repository_rule( # If TensorFlow is linked as a submodule. # path_prefix and tf_repo_name are no longer used. def tf_workspace(path_prefix = "", tf_repo_name = ""): + # We must check the bazel version before trying to parse any other BUILD + # files, in case the parsing of those build files depends on the bazel + # version we require here. + check_version("0.4.5") cuda_configure(name = "local_config_cuda") sycl_configure(name = "local_config_sycl") if path_prefix: -- GitLab