acceptable-guitar-79854
10/21/2020, 8:55 PM~/.cache/pants/named_caches/pex_root and ~/.pex/?
• is there a way to set where named_caches/ , lmdb_store go? e.g. somewhere on NFShundreds-father-404
10/21/2020, 9:03 PM~/.pex is when you use Pex outside of Pants. ~/.cache/pants/named_caches/pex_root is the same thing, but isolated.
is there a way to set whereYes, I really need to finish https://www.pantsbuild.org/docs/troubleshooting#how-to-change-your-cache-directory. Change
named_caches_dir and local_store_dir in the [GLOBAL] scopeacceptable-guitar-79854
10/21/2020, 9:09 PMhundreds-father-404
10/23/2020, 11:34 PMacceptable-guitar-79854
10/24/2020, 6:52 PM~/.pex is populated when running pants? i don't know why it appears there when pants already uses named_caches
2. what happens if multiple concurrent builds point to the same lmdb_store / named_caches say somewhere on NFSacceptable-guitar-79854
10/24/2020, 8:25 PM$PANTS_HOMEacceptable-guitar-79854
10/24/2020, 8:25 PMhundreds-father-404
10/25/2020, 5:28 PMpip install pex, then pex -o my_pex req1 req2?.
2. That should be safe afaict. lmdb_store uses the Lightning Memory-Mapped Database scheme: https://en.wikipedia.org/wiki/Lightning_Memory-Mapped_Database, and can handle multiple projects writing at the same time. named_caches is exclusively append-only caches, i.e. that avoid overwriting anything. (This is why it’s so tricky for us to leverage MyPy’s cache in a safe way, which mutates)
3. I think $PANTS_HOME is only used by the ./pants script to determine where to put ~/.cache/pants/setup. Perhaps we should rename it to something like PANTS_SETUP_CACHE.acceptable-guitar-79854
10/25/2020, 7:50 PMrm -rf ~/.pex/
2. du -sh ~/.pex/ -> no such file or directory
3. ./pants fmt ::
• initialising pantsd
• finding interpreter to satisfy constraints
• run isort, docformatter (without building isort, docformatter)
4. du -sh ~/.pex/ -> 17Mhundreds-father-404
10/25/2020, 7:56 PMPANTS_HOMEhundreds-father-404
10/25/2020, 8:02 PM~/.pex when running PEXes (but not when building them)hundreds-father-404
10/25/2020, 8:17 PMacceptable-guitar-79854
10/25/2020, 8:29 PM