Skip to content
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

pip-compile --output-file test.txt also writes to stdout #360

Closed
blueyed opened this issue May 11, 2016 · 3 comments
Closed

pip-compile --output-file test.txt also writes to stdout #360

blueyed opened this issue May 11, 2016 · 3 comments
Labels
logging Related to log or console output

Comments

@blueyed
Copy link
Contributor

blueyed commented May 11, 2016

With pip-compile --output-file test.txt test.in the output should only be written to the file, and not to stdout additionally.
This happens through log.info (https://github.com/nvie/pip-tools/blob/a5ef99f320e1eb3841a8571131e1cfc8aa6ed4e4/piptools/writer.py#L96).

I think it should write to stdout only when - is used for --output-file (which would be a new feature also).

Related: #353.

Support for stdin/stdout was initially requested/discussed in #104.

@cjerdonek
Copy link

Issue #275 is also related.

blueyed added a commit to blueyed/pip-tools that referenced this issue May 12, 2016
@vphilippon vphilippon added the logging Related to log or console output label Nov 24, 2017
@atugushev
Copy link
Member

It writes to stderr since 4.0.0. Can be suppressed by --quiet flag.

@blueyed
Copy link
Contributor Author

blueyed commented Feb 3, 2020

@atugushev Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logging Related to log or console output
Projects
None yet
Development

No branches or pull requests

4 participants