You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you define a requirements.in file that has a library with no [extra] and use the requirement.txt output as input for a dev-requirements.in file that adds an [extra], the output dev-requirements.txt will inconsistently have either the [extra] at the end of the library or not...
In the bug repro repo, I have a script called pip-compile.sh. If you remove the .txt files and run the script twice, you'll see that the first time dev-requirements.txt contains git+https://git@github.com/arthurio/pip-tools-bug-lib#egg=my-lib[test]
but the second time it contains git+https://git@github.com/arthurio/pip-tools-bug-lib#egg=my-lib.
I would expect pip-compile to always keep the [extra] flag.
Actual result
pip-compile strips out the [extra] flag the second time it's ran.
The text was updated successfully, but these errors were encountered:
arthurio
changed the title
Running pip-compile on dev-requirements.in that adds an extra to a library has inconsistent output
Running pip-compile in dev-requirements.in that adds an extra to a library has inconsistent output
Aug 30, 2021
arthurio
changed the title
Running pip-compile in dev-requirements.in that adds an extra to a library has inconsistent output
Running pip-compile with a dev-requirements.in that adds an extra to a library has inconsistent output
Aug 30, 2021
When you define a
requirements.in
file that has a library with no[extra]
and use therequirement.txt
output as input for adev-requirements.in
file that adds an[extra]
, the outputdev-requirements.txt
will inconsistently have either the[extra]
at the end of the library or not...Environment Versions
Steps to replicate
I have created a reproducible demo:
In the bug repro repo, I have a script called
pip-compile.sh
. If you remove the.txt
files and run the script twice, you'll see that the first timedev-requirements.txt
containsgit+https://git@github.com/arthurio/pip-tools-bug-lib#egg=my-lib[test]
but the second time it contains
git+https://git@github.com/arthurio/pip-tools-bug-lib#egg=my-lib
.You can see that from the 2 consecutive commits:
Expected result
I would expect
pip-compile
to always keep the[extra]
flag.Actual result
pip-compile
strips out the[extra]
flag the second time it's ran.The text was updated successfully, but these errors were encountered: