Skip to content

Refreshing lockfiles and groups #1999

Answered by frostming
adriangb asked this question in Q&A
Discussion options

You must be logged in to vote

You need to update the pins in the lockfile but pdm lock --refresh doesn't do that, which is said in the help message: Don't update pinned versions, only refresh the lock file. Though it might be a confusing of what it is updating, it's indeed only updating the hashes(including lockfile hash and artifact hashes).

Just leave the --refresh, run pdm update and it will work. Don't worry about the unnecessary IO, it will check the current pins and only request PyPI to get new when it doesn't meet the new requirements.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@adriangb
Comment options

@pawamoy
Comment options

pawamoy Jun 12, 2023
Maintainer Sponsor

@adriangb
Comment options

@pawamoy
Comment options

pawamoy Jun 13, 2023
Maintainer Sponsor

Answer selected by adriangb
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