curved-manchester-66006
09/13/2023, 5:20 PM~/.cache/pants
keyed off of the OS/arch? Or more concretely, if I'm on a macbook, can I bindmount ~/.cache/pants
into a Linux container and run pants
from both within and without the container? (I don't have a macbook so I'm in part thinking out loud here.)curved-manchester-66006
09/13/2023, 5:24 PMpex_root/venvs/
I admit I'm skepticalhappy-kitchen-89482
09/13/2023, 7:30 PMenough-analyst-54434
09/14/2023, 12:42 AMPEX_PYTHON=python3.10 my.pex ...
to run the PEX, you should be good to go as long as the Pythons used on the Mac and Linux side don't have the same absolute path for the Python executable: https://github.com/pantsbuild/pex/blob/5c0c29c192bd99335b5a1ab5b68a0f8556cd97aa/pex/variables.py#L773-L900. I did not think to defend against that corner case.enough-analyst-54434
09/14/2023, 12:47 AM