-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
Using pip-compile --no-index doesn't exclude the --extra-index-url from being added to requirements.txt #1028
Comments
Hello @jackton1 Thanks for the issue! The fact is the Default behavior without $ echo "" | pip-compile - -qo- --extra-index-url https://foo
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --extra-index-url=https://foo --output-file=- -
#
--extra-index-url https://foo See $ echo "" | pip-compile - -qo- --extra-index-url https://foo --no-index
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --extra-index-url=https://foo --no-index --output-file=- -
# Notice the
That's because before 4.X Most likely, you need the Should we remove |
Personally from the help information it mentions the index url which one could assume relates --index / --no-index Add index URL to generated file If this is the case using a similar option This could be a new option I prefer the former since it's clear and explicit. @atugushev |
I must note that See also #811 (comment) wich could be related. |
Yeah it was quite obvious that this was a bug prior to 4.x.x I also agree that I'll be keen on finding a middle ground since we recently upgraded to 4.x.x and lost the previous bug/behaviour. |
Let's fix it. See #811 (comment). |
Here is the fix #1146. Please test and review it, any feedback is welcomed! |
Will do. Thanks. |
Is this resolved with the current redaction behavior? Thanks for any update! |
Yes this works as expected using |
Thanks! Do you think it's sufficient to close the issue? |
Yes, I’ll close this. Thanks |
Prior to 4.x.x using
pip-compile
and--no-index
option correctly excluded the--extra-index-url
from the generatedrequirements.txt
This doesn't seem to work with the latest release.
Environment Versions
Python 3.7.3
pip 19.3.1
pip-compile, version 4.3.0
Steps to replicate
Expected result
In the requirements.txt
Actual result
The text was updated successfully, but these errors were encountered: