Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
disable-enforced-bazel-build-mirror.patch 908 B
--- a/third_party/repo.bzl        2020-06-29 16:54:49.000000000 +0200
+++ b/third_party/repo.bzl        2020-06-29 17:20:42.594725313 +0200
@@ -80,15 +80,6 @@
     _execute_and_check_ret_code(ctx, cmd)
 
 def _tf_http_archive(ctx):
-    if ("mirror.tensorflow.org" not in ctx.attr.urls[0] and
-        (len(ctx.attr.urls) < 2 and
-         ctx.attr.name not in _SINGLE_URL_WHITELIST.to_list())):
-        fail("tf_http_archive(urls) must have redundant URLs. The " +
-             "mirror.tensorflow.org URL must be present and it must come first. " +
-             "Even if you don't have permission to mirror the file, please " +
-             "put the correctly formatted mirror URL there anyway, because " +
-             "someone will come along shortly thereafter and mirror the file.")
-
     use_syslib = _use_system_lib(ctx, ctx.attr.name)
     if not use_syslib:
         ctx.download_and_extract(