Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to update content_hash in pdm.lock without updating #642

Closed
blueyed opened this issue Sep 8, 2021 · 2 comments · Fixed by #812
Closed

Provide a way to update content_hash in pdm.lock without updating #642

blueyed opened this issue Sep 8, 2021 · 2 comments · Fixed by #812
Labels
⭐ enhancement Improvements for existing features

Comments

@blueyed
Copy link
Contributor

blueyed commented Sep 8, 2021

In case of merge conflicts you might have to update the content_hash based on the merged result (if not taking one alternative completely).

There appears to be no command to update/verify/rewrite the lock file without updating it, is there?

I've tried pdm lock, which does not have --no-update like e.g. poetry. I think this could be a good option here also?

(I've also tried pdm update --update-reuse, but it would still update versions.)

As far as I can see it gets done currently implicitly with pdm install:

Lock file hash doesn't match pyproject.toml, regenerating...

@blueyed blueyed added the ⭐ enhancement Improvements for existing features label Sep 8, 2021
@blueyed
Copy link
Contributor Author

blueyed commented Apr 5, 2022

I think it would be useful if this would also update the hashes, e.g. when you've added/changed sources.
(I can create a new issue / feature request if needed, but thought it is very much related to this issue here already)

@frostming
Copy link
Collaborator

#1019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants