-
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
poetry install
exit code 0 (success) even if readme file does not exist and fails to install the package
#8637
Comments
So with Poetry 1.6, Poetry 1.7 does not fail, but prints a warning in both cases. I agree that it would be better if it failed, but I think we can only change this after we have a "non-package" mode (cf #1132 (comment)) because there are a lot of users who do not want it to fail. |
It’s not a critical issue and i agree with your plan. |
I can confirm this issues as well (poetry |
Just his this today, I also forgot to
The last line is promising 🤓 : Imo since the failure is catastrophic (image build succeeds, but fails at runtime since installation didn't actually happen), the default behavior should definitely be an error, not a warning.
I can understand this. Maybe an alternate solution is for |
Hello, I just had this exact same problem when building a Docker image: basically If |
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. |
-vvv
option) and have included the output below.Issue
with Poetry 1.6.1,
poetry install
command fails with exit code != 0:but Poetry 1.7.0 do not fail:
I guess this behavior was introduced by #8369 .
In daily development, it's ok, one can see the warning messages.
But in my usecase, poetry install in Dockerfile,
docker build
doesn't fail if i forget to copy README likeCOPY README.md
.This result is very confusing, and I expect to return failure exit code if attempting to install package was failed.
Thanks! :)
The text was updated successfully, but these errors were encountered: