v2.0.0: poetry check --lock
has nonzero exit status when only warnings occurred
#10009
Labels
poetry check --lock
has nonzero exit status when only warnings occurred
#10009
Description
The behaviour of
poetry check --lock
with only warnings about deprecated metadata is unexpected: the command still exits with a1
instead of0
. I expected a1
only when there are errors.Workarounds
Instead of checking the exit status I now scan the poetry check output for lines starting with
Error:
.Poetry Installation Method
pip
Operating System
WSL
Poetry Version
2.0.0
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
No response
Poetry Runtime Logs
poetry-runtime.log
The text was updated successfully, but these errors were encountered: