Expand description
Fetching a package into the cache. A payload enters the cache only after its sha256 matched the manifest, so nothing downstream verifies it again.
StructsΒ§
- Failure π
- One attemptβs failure, and whether another attempt could succeed.
ConstantsΒ§
- CANCEL_
POLL_ πMS - How often a wait looks at Cancel.
- RETRY_
DELAYS_ πMS - The waits before the second and third attempts at one package.
FunctionsΒ§
- download_
retrying download_to_cache, tried again after a failure a retry could fix (seeHttpError::is_transient, plus a payload that arrived corrupted), waiting between attempts;on_retryhears why, for the run log.- download_
to_ πcache - Streams
packageto a temp file while hashing it, then promotes the file to<sha>.zipand records the entry; any failure deletes the temp file. - fetch_
verified π - promote π
- Identical bytes another package already stored are kept and the temp file dropped.
- wait π
- Sleeps
milliseconds, giving up as soon as Cancel is pressed.