Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tensorboard/plugins/mesh/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ py_test(
srcs = ["demo_utils_test.py"],
data = [
":test_data",
"//tensorboard/compat:tensorflow",
],
srcs_version = "PY3",
deps = [
":demo_utils",
"//tensorboard/compat:tensorflow",
],
)

Expand Down
10 changes: 9 additions & 1 deletion third_party/repo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@ _tb_http_archive = repository_rule(
)

def tb_http_archive(name, sha256, urls, **kwargs):
"""Downloads a mirrored archive for TensorBoard-specific repo wiring."""
"""Downloads a mirrored archive for TensorBoard-specific repo wiring.

Args:
name: The name of the repository.
sha256: The expected SHA-256 hash of the downloaded file.
urls: A list of URLs where the file can be downloaded.
**kwargs: Additional arguments passed to the underlying rule.
"""
if len(urls) < 2:
fail("tb_http_archive(urls) must have redundant URLs.")

Expand All @@ -68,6 +75,7 @@ def tb_http_archive(name, sha256, urls, **kwargs):
fail("The first entry of tb_http_archive(urls) must be a mirror URL.")

if native.existing_rule(name):
# buildifier: disable=print
print("\n\033[1;33mWarning:\033[0m skipping import of repository '" +
name + "' because it already exists.\n")
return
Expand Down
Loading