rapid-exabyte-76685
04/02/2022, 6:47 AMHOME/.cache/pants/
cache directories? 🧵rapid-exabyte-76685
04/02/2022, 6:52 AM- save_cache:
key: v1-cache-key-a
paths:
- /some/path
- /some/other/path
- save_cache:
key: v1-cache-key-b-{{ checksum: "/path/to/a/file" }}
paths:
- /some/other/path/to/cache
and
- restore_cache:
keys:
- v1-cache-key-a
- restore_cache:
keys:
- v1-cache-key-b- # in the absence of the checksum on the cache key, the most recently cached item matching the start of the key name will be restored
rapid-exabyte-76685
04/02/2022, 6:55 AMchecksum
template function works on a single file only. Is there a good single file in each of the three recommended cache directories (/pants/setup
/pants/named_caches
/pants/lmdb_store
) to ‘anchor’ on?rapid-exabyte-76685
04/02/2022, 6:59 AMsave_cache
and passing that through?polite-garden-50641
04/02/2022, 11:07 AMrapid-exabyte-76685
04/03/2022, 5:22 AMechoing-farmer-15630
04/03/2022, 10:23 AMechoing-farmer-15630
04/03/2022, 10:26 AM❯ du -h --max-depth=1 ~/.cache/pants/named_caches
11G /home/vputz/.cache/pants/named_caches/pex_root
11G /home/vputz/.cache/pants/named_caches
11G of cache just takes a while to transfer; when we're already transferring the pip cache, it didn't seem worth it. So what we have isn't great, but I only have so much time to devote to getting a build system set up. We may end up just setting up our own CI system so we can have gigantic resident caches to get around this.