uv icon indicating copy to clipboard operation
uv copied to clipboard

I expected `--resolution=lowest` to imply `--reinstall` for an existing package

Open adamtheturtle opened this issue 1 year ago • 2 comments

I ran:

uv pip install ruff # installs the latest version
> uv pip install --resolution=lowest ruff
Audited 1 package in 0ms

I expected that this would install the lowest version of ruff. I think that either changing the behaviour, or documenting this is suitable.

adamtheturtle avatar Feb 18 '24 14:02 adamtheturtle

I think our behavior here is actually okay, because it's consistent in general with how pip install works: if you have a satisfactory version in your environment, it defers to that. But we should document it somewhere / somehow.

charliermarsh avatar Feb 18 '24 15:02 charliermarsh

We could also consider displaying a warning? That might be hard to do well though.

zanieb avatar Feb 18 '24 17:02 zanieb

I think our behavior here is ok, though I can understand why it might be confusing on first run.

charliermarsh avatar Apr 23 '24 19:04 charliermarsh