https://pantsbuild.org/ logo
#general
Title
# general
a

ancient-france-42909

08/18/2022, 9:04 PM
Is there a way to get the versions of packages pants used to run a certain goal? (in this particular case, tests)
h

hundreds-father-404

08/18/2022, 9:08 PM
For Python?
a

ancient-france-42909

08/18/2022, 9:09 PM
Yeah, sorry 😞
h

hundreds-father-404

08/18/2022, 9:09 PM
a

ancient-france-42909

08/18/2022, 9:09 PM
Yeah, but that will take days…
I just wanted to get the answer for a particular test 🙂
h

hundreds-father-404

08/18/2022, 9:11 PM
You can use
./pants test --no-process-cleanup test --force path/to/tests.py
. It will log the path to the sandbox, then inspect the
requirements.pex
I think using
unzip
and looking at the
PEX-INFO
file
a

ancient-france-42909

08/18/2022, 9:12 PM
Those lockfiles look appealing right about now, I can just run it now and (provided my mac doesn’t catch on fire), it should be done by tomorrow morning 🙂
h

hundreds-father-404

08/18/2022, 9:14 PM
Sorry I'm not following - why would it take days for the lockfile to generate?
a

ancient-france-42909

08/18/2022, 9:14 PM
I don’t know, I tried to run it, I stopped it after 15 minutes where it was still doing
Resolve transitive targets
👀 1
2 Views