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

List specifier used to install a tool #6747

Closed
paidhi opened this issue Aug 28, 2024 · 5 comments · Fixed by #7050
Closed

List specifier used to install a tool #6747

paidhi opened this issue Aug 28, 2024 · 5 comments · Fixed by #7050
Labels
cli Related to the command line interface good first issue Good for newcomers help wanted Contribution especially encouraged

Comments

@paidhi
Copy link

paidhi commented Aug 28, 2024

Currently (uv v0.3.5) if a constraint is used with uv tool install the version/restriction is pinned and subsequent uv tool upgrade commands might not update to a newer release. E.g. `uv tool install "pyinfra<3.0".

Over time I imagine it's easy to forget that a tool was installed this way. And as a result one might start wondering why e.g. uv tool upgrade --all misses newer versions for some tools.

I think it would help if the output from uv tool list shows what specifier was used to install a tool (which is stored in $(uv tool dir)/${package_name}/uv-receipt.toml).

Example (mockup):

$ uv tool install "pyinfra<3.0"

$ uv tool list
pyinfra v2.9.2 (specifier: "<3.0")
- pyinfra
@charliermarsh charliermarsh added the cli Related to the command line interface label Aug 28, 2024
@zanieb
Copy link
Member

zanieb commented Aug 28, 2024

This seems reasonable, I wonder if it should be opt-in though?

@charliermarsh
Copy link
Member

--show-specifiers would be fine with me.

@zanieb
Copy link
Member

zanieb commented Aug 28, 2024

We have this as --show-version-specifiers in uv pip tree

@paidhi
Copy link
Author

paidhi commented Aug 28, 2024

Maybe opt-in as part of a --verbose option (uv tool list -v).

@zanieb
Copy link
Member

zanieb commented Aug 28, 2024

That's fine with me too.

@charliermarsh charliermarsh added good first issue Good for newcomers help wanted Contribution especially encouraged labels Sep 4, 2024
charliermarsh pushed a commit that referenced this issue Sep 5, 2024
## Summary

Closes #6747 .

## Test Plan

```
cargo test --test tool_list
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command line interface good first issue Good for newcomers help wanted Contribution especially encouraged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants