diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2015-09-23 13:30:50 +0000 |
---|---|---|
committer | Philipp Wollermann <philwo@google.com> | 2015-09-24 14:15:30 +0000 |
commit | ffdf67563e87f37f58d2197cc924f0e62d1f9840 (patch) | |
tree | 0394dfd36ffea869b5f896b264d328dc2a71f7cc /src | |
parent | 98235e3053b02ed1a8a48e43d8c3fde1ae57b5f6 (diff) |
Update doc for [new_]http_archive to mention tarballs.
--
Change-Id: Ib1270d1bbd549de96e7b82f8e674f6d67df8f450
Reviewed-on: https://bazel-review.googlesource.com/#/c/2020
MOS_MIGRATED_REVID=103740143
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/HttpArchiveRule.java | 9 | ||||
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/NewHttpArchiveRule.java | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/HttpArchiveRule.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/HttpArchiveRule.java index b09fa3f8f8..86ec96afcf 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/HttpArchiveRule.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/HttpArchiveRule.java @@ -76,10 +76,13 @@ public class HttpArchiveRule implements RuleDefinition { ${ATTRIBUTE_SIGNATURE} -<p>Downloads a Bazel repository as a compressed archive file, decompresses it, and makes its - targets available for binding.</p> +<p>Downloads a Bazel repository as a compressed archive file, + decompresses it, and makes its targets available for binding. The + repository should already contain a BUILD file. If it does not, use + <a href="#new_http_archive">new_http_archive</a> instead.</p> -<p>Only Zip-formatted archives with the .zip extension are supported.</p> +<p>It supports Zip-formatted archives (with the .zip extension) and +tarballs (.tar.gz and .tgz extensions).</p> ${ATTRIBUTE_DEFINITION} diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/NewHttpArchiveRule.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/NewHttpArchiveRule.java index bc5ebd0ed0..8f06057c45 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/NewHttpArchiveRule.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/workspace/NewHttpArchiveRule.java @@ -106,7 +106,8 @@ ${ATTRIBUTE_SIGNATURE} <p>Downloads a compressed archive file, decompresses it, and creates a Bazel repository by combining the archive with the provided BUILD file.</p> -<p>Only Zip-formatted archives with the .zip extension are supported.</p> +<p>It supports Zip-formatted archives (with the .zip extension) and +tarballs (.tar.gz and .tgz extensions).</p> ${ATTRIBUTE_DEFINITION} |