-
-
Notifications
You must be signed in to change notification settings - Fork 616
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
Autogenerated command string in requirements.txt missing --upgrade flag #1461
Comments
It's a deliberate decision to skip |
I see, thanks for the fast reply. Can I ask why it's considered one-off? Maybe I have an unusual use case, but I only run |
I guess it's to make |
I'll close this based on the above, but please let us know if it doesn't resolve your issue. Thanks! |
I have the same issue. My company requires to keep our dependencies to the latest possible version, so we always run pip-compile with --upgrade Developers normally copy the command from the requirements.txt to guarantee consistency, but this doesn't lead to the expected behaviour. |
@Nao83 you might find useful env COMPILE_COMMAND to control this. |
Thanks, that's nice |
Running the command
pip-compile --no-emit-index-url --no-emit-trusted-host --upgrade --output-file=requirements.txt requirements.in
creates therequirements.txt
file, but the command that is printed at the top is missing the --upgrade flag. Ideally it would copy all the input parameters so that the whole string can be copied and pasted at a later date without needing to recall each parameter.Environment Versions
$ python -V
: 3.7$ pip --version
: 21.1.3$ pip-compile --version
: 6.2.0Steps to replicate
pip-compile --no-emit-index-url --no-emit-trusted-host --upgrade --output-file=requirements.txt requirements.in
Expected result
requirements.txt
file is generated with the command that was run printed in full at the topActual result
requirements.txt
file withpip-compile --no-emit-index-url --no-emit-trusted-host --output-file=requirements.txt requirements.in
(missing --upgrade) printed at the topThe text was updated successfully, but these errors were encountered: