-
I'm trying to fully understand the behavior of For specificity, with the following inputs (which happen to be Pants's current requirements, plus cowsay):
(In my real case I also set The initial run, when there is no So:
And so on - what seem like small incremental updates or deletions appear to trigger basically a full resolve every time. Note that if I set Side note: I have been removing pip.log between runs, but if I don't I can trigger an odd error. After removing
And this error persists until I delete the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
and
Exactly, That is "expected"! Every lock subcommand (create, update, sync) currently performs a complete fresh lock from scratch. The only difference is that update and sync apply constraints based on a prior lock. The For speed, see #2044, but that bug was filed at least 6 months after discussion about this in Pants forums. It has been "well-known" for a long time now that the only way to speed up lock resolves with Pip is to use the trick detailed in that issue. And know you're somehow not alone in this confusion: pantsbuild/pants#21223 (comment) |
Beta Was this translation helpful? Give feedback.
-
Although you threw me with an apparent lack of understanding that Pex always uses a full Pip resolve, your delete observation is correct. For that 1 case, an update with nothing but deletes, Pex could special case things and not call Pip at all: #2566 |
Beta Was this translation helpful? Give feedback.
-
Bug report: #2568 |
Beta Was this translation helpful? Give feedback.
and
Exactly, That is "expected"! Every lock subcommand (create, update, sync) currently performs a complete fresh lock from scratch. The only difference is that update and sync apply constraints based on a prior lock. The
pex3 lock {update,sync}
commands get you incremental lock updates. They have 0 to do with speed of locking.For speed, see #2044, but that bug was filed at least 6 months after discussion about this in Pants forums. It has been "well-known" for a long time now that the o…