Skip to content

Disallow freeze format with pip list --outdated#11482

Merged
pradyunsg merged 3 commits intopypa:mainfrom
Mr-Pepe:disallow-freeze-format-with-pip-list-outdated
Oct 4, 2022
Merged

Disallow freeze format with pip list --outdated#11482
pradyunsg merged 3 commits intopypa:mainfrom
Mr-Pepe:disallow-freeze-format-with-pip-list-outdated

Conversation

@Mr-Pepe
Copy link
Copy Markdown
Contributor

@Mr-Pepe Mr-Pepe commented Oct 3, 2022

Resolves #9789 by raising an error if pip list --outdated is used in combination with --format=freeze

@Mr-Pepe Mr-Pepe force-pushed the disallow-freeze-format-with-pip-list-outdated branch from b074fb6 to 611ed3f Compare October 3, 2022 14:22
Comment thread news/9789.removal.rst Outdated
@uranusjr uranusjr added this to the 22.3 milestone Oct 4, 2022
@pradyunsg pradyunsg merged commit e6e7c12 into pypa:main Oct 4, 2022
@informatik01
Copy link
Copy Markdown

informatik01 commented Oct 17, 2022

A few days ago I updated pip to version 22.3 and today, when executing pip list --outdated --format=freeze, received an error:

ERROR: List format 'freeze' can not be used with the --outdated option.

Already wanted to open an issue, but then I found this page. At least now I know it was done on purpose.

Suggestion

It would be really nice if you update the related documentation both online and for the pip command help info (pip list --help) to reflect these latest changes.

Currently the documentation still mentions freeze as a possible value for the --format option. All those previous years this combination worked (I use it in a shell script) and now it doesn't. So mentioning this moment in the documentation will really help to avoid confusion etc.


P.S.

Maybe using "cannot" in the above mentioned error message would be more appropriate (sorry, couldn't help mentioning that 😄).

@Mr-Pepe Mr-Pepe deleted the disallow-freeze-format-with-pip-list-outdated branch October 19, 2022 06:15
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pip list --outdated --format=freeze does not return the right version of the outdated packages.

4 participants