Happy belated holidays y’all. I come bearing bugs,...
# general
m
Happy belated holidays y’all. I come bearing bugs, possibly maybe. Sorry. I was debugging a resource dependency issue and thankfully remembered having read about the
--no-process-execution-local-cleanup
flag. When running
./pants test …
that worked like a charm and all files nicely stuck around, waiting to be inspected. But originally the resource issue only showed when running
./pants run …
. In that case, Pants happily kept around the PEX files for finding Python and also the cached PEX file for the dependencies. But it did not keep around the PEX file with the local Python code, which kind of defeated the purpose of the flag. Admittedly, that is with Pants 2.7. I’m good now, thanks to good old trusted
print()
plus some choice
importlib.resources
invocations. But that does look like a bug to me.
🎁 1