wide-midnight-78598
07/24/2022, 4:45 PMhappy-kitchen-89482
07/24/2022, 5:38 PMwide-midnight-78598
07/24/2022, 5:44 PMhappy-kitchen-89482
07/24/2022, 5:48 PMhttps://frinkiac.com/video/S03E14/I2SXzKbSpMYKnMuQ-6tUnmaWBwA=.gif▾
fast-nail-55400
07/24/2022, 6:02 PMfast-nail-55400
07/24/2022, 6:13 PMwide-midnight-78598
07/24/2022, 6:42 PMwide-midnight-78598
07/24/2022, 6:42 PMfast-nail-55400
07/24/2022, 7:54 PMfast-nail-55400
07/24/2022, 7:56 PMwide-midnight-78598
07/24/2022, 9:11 PMwide-midnight-78598
07/24/2022, 9:12 PMEspecially if Pants has to expand it to disk every runIs that what would happen? I thought that once it's in the ~/.cache/pants/blah directory - it's just referenced from there from the filesystem?
wide-midnight-78598
07/24/2022, 9:13 PMfast-nail-55400
07/25/2022, 3:09 AMDownloadFile
intrinsic, the download goes directly into the Pants LMDB store (~/.cache/pants/lmdb_store
) which is a database of blobs. And it is stored not expanded to the actual filesystem.fast-nail-55400
07/25/2022, 3:10 AMExternalTool
-based tools use to download.)fast-nail-55400
07/25/2022, 3:10 AMDigest
that would have to be expanded to disk every time it is used.fast-nail-55400
07/25/2022, 3:11 AMProcess
has the notion of an "immutable input" which expands to disk once per Pants session and symlinks the expanded Digest
into execution sandboxes. But to ensure no file corruption (in case let's say something were to modify the on-disk cache) it is expanded each session.fast-nail-55400
07/25/2022, 3:12 AMfast-nail-55400
07/25/2022, 3:14 AMrustup
to manage Rust toolchain downloads and expansion. https://github.com/tdyas/pants/blob/rust_backend/src/python/pants/backend/rust/util_rules/toolchains.py )fast-nail-55400
07/25/2022, 3:16 AMExternalTool
to avoid performance issues.fast-nail-55400
07/25/2022, 3:17 AMwide-midnight-78598
07/25/2022, 12:00 PM