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

mysterious-motherboard-97366

05/21/2022, 12:03 AM
When using Pex for lockfile generation, will
./pants generate-lockfiles
always regenerate from scratch? If so, is there an equivalent of
poetry lock --no-update
(see here) so that transitive dependencies stay on the same versions as before, if they have no need to change?
h

high-yak-85899

05/21/2022, 12:04 AM
Yeah, I requested something similar.
I think I filed a ticket about it. Let me see if I can find it
🙌 1
Not a separate issue, but just a comment in https://github.com/pantsbuild/pants/issues/15318
There is a valid argument to be made that, as long as the lock file respects your
requirements.txt
it shouldn't matter (though it does take a considerable longer amount of time to generate which is a pain).
However, my experience with third party libraries is that they're far too loose with their dependencies and end up triggering issues when pulled into a system that follows better practices.
e

enough-analyst-54434

05/21/2022, 1:47 AM
FWIW Pex supports
pex3 lock update -p just-this-project -p oh-and-this-one-too<12.0 lock.json
Pants just doesn't use this yet.
👍 1
🎉 2
2 Views