Replace calls to `third_party_http_archive` with calls to `tf_http_archive` alias. Disable 'mirror.tensorflow.org' check. A number of users don't seem to follow the requirements, which were not checked correctly before. This wasn't discovered by presubmits because the check is in the repo rule, which only triggers if the repo is actually used. PiperOrigin-RevId: 359355039 Change-Id: Ieddab6fd91b96e6e22afccdad21c8fa30b795ff4
20 lines
770 B
Python
20 lines
770 B
Python
"""Loads the Flatbuffers library, used by TF Lite."""
|
|
|
|
load("//third_party:repo.bzl", "tf_http_archive")
|
|
|
|
def repo():
|
|
tf_http_archive(
|
|
name = "flatbuffers",
|
|
strip_prefix = "flatbuffers-1.12.0",
|
|
sha256 = "62f2223fb9181d1d6338451375628975775f7522185266cd5296571ac152bc45",
|
|
urls = [
|
|
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/flatbuffers/archive/v1.12.0.tar.gz",
|
|
"https://github.com/google/flatbuffers/archive/v1.12.0.tar.gz",
|
|
],
|
|
build_file = "//third_party/flatbuffers:BUILD.bazel",
|
|
system_build_file = "//third_party/flatbuffers:BUILD.system",
|
|
link_files = {
|
|
"//third_party/flatbuffers:build_defs.bzl": "build_defs.bzl",
|
|
},
|
|
)
|