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

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

Closed
adamtheturtle opened this issue Feb 18, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@adamtheturtle
Copy link
Contributor

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.

@charliermarsh
Copy link
Member

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 charliermarsh added the documentation Improvements or additions to documentation label Feb 18, 2024
@zanieb
Copy link
Member

zanieb commented Feb 18, 2024

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

@charliermarsh
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants