Feature Request: Constraints for generating first uv.lock
when migrating
#6425
Labels
question
Asking for clarification or support
uv.lock
when migrating
#6425
When migrating from Poetry (or other solutions) I want to ensure that the generated
uv.lock
does not accidentally upgrade any packages.The docs say:
So what I assumed would work is:
requirements.txt
frompoetry.lock
viapoetry export
.uv lock
Sadly that didn't work (docs might be confusing here, I guess the latter just works with
uv pip
). I then assumed that maybe I can do:But that option does not exist.
What seems to have worked is to generate a fake
uv.lock
from my script, but I'm also not sure whether that really worked: I get a log statement that the lockfile is ignored becauserequires-dist
doesn't match (I'm not generating that one).It would be great if I could somehow provide constraints to
uv lock
. Or am I'm overlooking some existing feature?The text was updated successfully, but these errors were encountered: