Skip to content

Documentation on pdm lock #1029

Answered by frostming
yingbo asked this question in Q&A
Apr 8, 2022 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Lock file will be created automatically if not exists when you run pdm install. You only need to run pdm lock when you believe the lock file is corrupted or become unusable due to an upgrade.

With the existence of a lock file, pdm install and pdm sync will only install versions from it. So if you want the versions to be updated, use pdm update, it can be followed by package names so only selected package versions will be updated.

Replies: 3 comments 1 reply

Comment options

pawamoy
Apr 9, 2022
Maintainer Sponsor

You must be logged in to vote
0 replies
Comment options

pawamoy
Apr 9, 2022
Maintainer Sponsor

You must be logged in to vote
1 reply
@yingbo
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by yingbo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1028 on April 09, 2022 14:06.