pip exits with success despite incompatible constraint #6969
Labels
auto-locked
Outdated issues that have been locked by automation
resolution: duplicate
Duplicate of an existing issue/PR
type: support
User Support
Environment
This was also reproduced using
docker run python:3
.Description
pip installs a package with broken dependencies, if a constraints file specifies an incompatible version. An error message is shown, but the exit code is
0
.For example,
environs 5.2.1
requiresmarshmallow>=2.7.0
, but pip installs it withmarshmallow 2.6.0
if the latter is specified in a constraints file.Expected behavior
pip should not install the package, and exit with failure.
How to Reproduce
marshmallow==2.6.0
environs==5.2.1
pip install -r requirements.txt -c constraints.txt
Output
The text was updated successfully, but these errors were encountered: