1"""TensorFlow workspace initialization. Consult the WORKSPACE on how to use it.""" 2 3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 4load("//third_party:tf_runtime/workspace.bzl", tf_runtime = "repo") 5load("//third_party/llvm:workspace.bzl", llvm = "repo") 6 7def workspace(): 8 http_archive( 9 name = "io_bazel_rules_closure", 10 sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9", 11 strip_prefix = "rules_closure-308b05b2419edb5c8ee0471b67a40403df940149", 12 urls = [ 13 "https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz", 14 "https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz", # 2019-06-13 15 ], 16 ) 17 18 tf_runtime() 19 20 # https://github.com/bazelbuild/bazel-skylib/releases 21 http_archive( 22 name = "bazel_skylib", 23 sha256 = "f7be3474d42aae265405a592bb7da8e171919d74c16f082a5457840f06054728", 24 urls = [ 25 "https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz", 26 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz", 27 ], 28 ) 29 30 http_archive( 31 name = "rules_pkg", 32 urls = [ 33 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz", 34 "https://github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz", 35 ], 36 sha256 = "8a298e832762eda1830597d64fe7db58178aa84cd5926d76d5b744d6558941c2", 37 ) 38 39 # Load the raw llvm-project. llvm does not have build rules set up by default, 40 # but provides a script for setting up build rules via overlays. 41 llvm("llvm-raw") 42 43# Alias so it can be loaded without assigning to a different symbol to prevent 44# shadowing previous loads and trigger a buildifier warning. 45tf_workspace3 = workspace 46