diff options
author | Klaus Aehlig <aehlig@google.com> | 2018-04-16 09:44:41 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-04-16 09:46:58 -0700 |
commit | 840d5add25c184aed1c3d70ed568c3372c7ab90f (patch) | |
tree | 706296a9660398523e1c40542763f62d9df36cbf | |
parent | 3f2690b871c072fa20a082a5b9d0f1fe2173b64e (diff) |
repository_ctx.download_and_extract: mention cache in documentation
Since the repository_cache is now enabled by default, extend the documentation
of the download_and_extract method to mention its effect, if a sha256 checksum
is specified.
Change-Id: I3cb714e60a5957e338ceb83fe4f1a3c6eaf64960
PiperOrigin-RevId: 193053375
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java b/src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java index 2b31d6d784..a3f70b3813 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java @@ -581,6 +581,9 @@ public class SkylarkRepositoryContext { + " to omit the SHA-256 as remote files can change. At best omitting this field" + " will make your build non-hermetic. It is optional to make development easier" + " but should be set before shipping." + + " If provided, the repository cache will first be checked for a file with the" + + " given hash; a download will only be attempted, if the file was not found in the" + + " cache. After a successful download, the file will be added to the cache." ), @Param( name = "type", |