-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Update version number in pyproject.toml and update lock file without dependency resolution #5812
Comments
You have checked the "I have searched the documentation" box, but have you really? |
I did, but not well enough. I'm sorry! (For future readers: it's |
Well, I just tried that, but it still changes the locked versions of packages. I'm using poetry v1.1.12. Reopening.
Small portion of git diff output:
Ironically, the content-hash of To be clear, all I've changed in [tool.poetry]
name = "myfancyproject"
version = "1.4.0" # <<< this line Does this become a bug report at this point? Actually it might be #4618 because celery has extras and its the only package being changed... |
Sounds like a duplicate then, if so then it looks as though it should be fixed in the latest beta |
Would you expect the content hash to be updated? That part is not captured in #4618 |
The content hash does not include every part of |
Ahh! That makes sense. OK thanks! Closing as duplicate. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When performing a release of my library or application, I typically bump the version number in
pyproject.toml
.However, that means the lockfile is now out of sync (as it includes a content-hash of
pyproject.toml
). The only way to resolve is to re-runpoetry lock
, or to compute the content-hash myself and updatepoetry.lock
manually 🤮.If I choose to apply
poetry lock
, dependency resolution is performed, but I don't want to do that right before a release of my software!Is there a command or option that I'm overlooking to deal with this situation?
The text was updated successfully, but these errors were encountered: