aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2018-04-23 04:58:23 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-23 04:59:30 -0700
commit538c3ebb4607130a1670fc59bbd146c179574f36 (patch)
tree0310813172c43c55c52b9b7b8e840d4c85b2ca85 /third_party
parent584a8ac2f32e64d3ae3db3edf6186bba10841a06 (diff)
HttpDownloader: also cache files downloaded without provided hash
Even if downloading a file without a predicted hash, add it to the cache. This step is necessary to avoid redownloading when we switch to resolved WORKSPACES. Starting from a plain URL, the file is downloaded and the hash is added to the resolved version of the rule. Then we still want the resolved form of the rule (which still has different arguments) to download the same file again. Even before the design of resolved WORKSPACES is implemented, this caching is useful for the manual workflow: take the hash that is printed for every file downloaded without predicted hash and manually add it to the parameters of the rule. Then we prefer not to redownload the file again. Change-Id: I90eefa9efed7c47514cc481dc09d9e938efa5a39 PiperOrigin-RevId: 193907109
Diffstat (limited to 'third_party')
0 files changed, 0 insertions, 0 deletions