Skip to content

--force-reinstall should probably work without needing to pass --upgrade #1139

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

Closed
Julian opened this issue Aug 13, 2013 · 6 comments · Fixed by #4432
Closed

--force-reinstall should probably work without needing to pass --upgrade #1139

Julian opened this issue Aug 13, 2013 · 6 comments · Fixed by #4432
Labels
auto-locked Outdated issues that have been locked by automation C: upgrade The logic of upgrading packages type: bug A confirmed bug or unintended behavior

Comments

@Julian
Copy link
Contributor

Julian commented Aug 13, 2013

It's always bugged me to need to pass -U here, and I don't see an open ticket for it.

--force-reinstall should force a reinstall I think, upgrade or not.

@pakal
Copy link

pakal commented Jun 18, 2014

I'm also quite confused with the flags force_reinstall and ignore_installed (CF pip/req.py).

Actually force_reinstall seems to do the same as ignore_installed, except that it also works in the context of an upgrade.

Why not get rid of force_reinstall, and simply advocate ignore_installed to force reinstallation in any case ? What are the use cases for this flag ?

@ulope
Copy link

ulope commented Aug 28, 2015

I've just had a co-worker get very confused by this. IMO --force-reinstall should do exactly what it says on the tin - reinstall the given package without requiring any other arguments.

@intgr
Copy link

intgr commented Oct 5, 2015

+1, I was confused by this behavior as well.

@cjerdonek
Copy link
Member

See more recent discussion related to this here: issue #4400.

@cjerdonek
Copy link
Member

I submitted a PR for this here (with tests): #4432 .

@cjerdonek
Copy link
Member

I rebased my PR for this issue: PR #4432. It has tests, etc.

cjerdonek added a commit to cjerdonek/pip that referenced this issue Oct 23, 2017
xavfernandez pushed a commit that referenced this issue Oct 23, 2017
)

* Add failing tests for issue #1139 re: --force-reinstall.

* Address issue #1139: make --force-reinstall not require --upgrade.

* Address review comments.

* Address @xavfernandez's review comments.

This makes the new tests not require network access.
kianasun pushed a commit to kianasun/pip that referenced this issue Mar 28, 2018
…pypa#4432)

* Add failing tests for issue pypa#1139 re: --force-reinstall.

* Address issue pypa#1139: make --force-reinstall not require --upgrade.

* Address review comments.

* Address @xavfernandez's review comments.

This makes the new tests not require network access.
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: upgrade The logic of upgrading packages type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants