-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Verify that the lock file is up to date #1406
Comments
I think this would be a good fit for the Since the |
@sdispater sounds great! I'll plan on adding a simple check to the |
Hey, @wesleykendall, I also want to implement this feature. How is your progress? |
Duplicate issue: #453 |
I wonder if it would be reasonable to have a flag to pass to When building a container or using CI, I'd expect that would be the usual intent, so it would be nice if there was a succinct way to do it. If not, then |
@b0g3r I finally have some time this weekend to take a look at implementing it. Did you already start on it? |
I just want to chime in to argue for @ashokdelphia solution. I agree that adding a simple flag, i.e. |
It looks like this was implemented as |
@wesleykendall Any plans to release 1.2.0 yet? This feature would really help. |
I guess this can be closed since this was implemented in #1954? |
@jacobperron Might make sense to keep it open until 1.2.0 is released, since the feature is not yet available to end-users. (I came here because I was looking for this feature myself. 🙂) |
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. |
Feature Request
Issue
When I run
poetry export
orpoetry install
, I receive a warning message that saysWarning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.
if I have manually updated thepyproject.toml
file.Although I understand one should not edit dependencies in pyproject.toml and instead use
poetry add
, I have no control over what the other engineers at my company do and want to prevent this from happening in an automated test.I see no way of verifying the lock file is up to date with CLI, and it does not appear that
poetry install
orpoetry export
return non-zero exit codes when this warning is displayed. I'd really like to avoid the brittle solution of parsing stdout for a warning message that may change.I'd like to propose either:
poetry lock --check
flag that will check if the lock file is up to date and return a non-zero exit code if it isn't.poetry check
. I'm just not certain if this fits in the scope ofpoetry check
.I'm happy to implement any solution the maintainers see fit
The text was updated successfully, but these errors were encountered: