Skip to content

Commit

Permalink
Merge pull request #1867 from chrysle/pip-compile-no-allow-unsafe-war…
Browse files Browse the repository at this point in the history
…ning

Improve warning for `pip-compile` if no `--allow-unsafe` was passed
  • Loading branch information
webknjaz committed May 11, 2023
2 parents e187b41 + 2170458 commit 244ac03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion piptools/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@

MESSAGE_UNSAFE_PACKAGES_UNPINNED = comment(
"# WARNING: The following packages were not pinned, but pip requires them to be"
"\n# pinned when the requirements file includes hashes. "
"\n# pinned when the requirements file includes hashes and the requirement is not"
"\n# satisfied by a package already installed. "
"Consider using the --allow-unsafe flag."
)

Expand Down

0 comments on commit 244ac03

Please sign in to comment.