Skip to content

Commit

Permalink
[BUILD] Update zlib url in rules_closure.
Browse files Browse the repository at this point in the history
Signed-off-by: Tongxuan Liu <tongxuan.ltx@alibaba-inc.com>
  • Loading branch information
liutongxuan committed Apr 27, 2023
1 parent fbcf834 commit f5d4167
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ http_archive(
name = "io_bazel_rules_closure",
sha256 = "5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9",
strip_prefix = "rules_closure-308b05b2419edb5c8ee0471b67a40403df940149",
patch_args = ["-p1"],
patches = ["//third_party:io_bazel_rules_closure.patch"],
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz",
"https://github.com/bazelbuild/rules_closure/archive/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz", # 2019-06-13
Expand Down
37 changes: 37 additions & 0 deletions third_party/io_bazel_rules_closure.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
From 18efd193ad8e10e2ea95bcf1754459fe34f6e96a Mon Sep 17 00:00:00 2001
From: Tongxuan Liu <tongxuan.ltx@alibaba-inc.com>
Date: Thu, 27 Apr 2023 16:10:04 +0800
Subject: [PATCH] update zlib urls.

---
WORKSPACE | 2 +-
closure/repositories.bzl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/WORKSPACE b/WORKSPACE
index cb9eee5..1b03da7 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -11,7 +11,7 @@ http_archive(
build_file = "//:third_party/zlib.BUILD",
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
strip_prefix = "zlib-1.2.11",
- urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
+ urls = ["https://mirror.bazel.build/zlib.net/zlib-1.2.11.tar.gz"],
)

http_archive(
diff --git a/closure/repositories.bzl b/closure/repositories.bzl
index f21ff2b..dee10ba 100644
--- a/closure/repositories.bzl
+++ b/closure/repositories.bzl
@@ -1005,5 +1005,5 @@ def zlib():
build_file = "@io_bazel_rules_closure//:third_party/zlib.BUILD",
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
strip_prefix = "zlib-1.2.11",
- urls = ["https://zlib.net/zlib-1.2.11.tar.gz"],
+ urls = ["https://mirror.bazel.build/zlib.net/zlib-1.2.11.tar.gz"],
)
--
2.37.1

0 comments on commit f5d4167

Please sign in to comment.