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

Let User Know Self Update is Disabled #8318

Closed
mahyarmirrashed opened this issue Oct 18, 2024 · 1 comment · Fixed by #8337
Closed

Let User Know Self Update is Disabled #8318

mahyarmirrashed opened this issue Oct 18, 2024 · 1 comment · Fixed by #8337
Labels
cli Related to the command line interface help wanted Contribution especially encouraged

Comments

@mahyarmirrashed
Copy link

I had installed uv from brew and was trying to run uv self update. However, that won't work (and it shouldn't, so kudos)!
The only thing was that the error message could be improved a bit.

mahyar@lioness vivaldi % uv self update
error: unrecognized subcommand 'self'

Usage: uv [OPTIONS] <COMMAND>

For more information, try '--help'.
mahyar@lioness vivaldi % uv --version
uv 0.4.18 (Homebrew 2024-10-01)

I would like to see something along the lines of "Hey, it looks like you're trying to self-update. However, uv was installed from and cannot be updated in this way. Please use your package manager to update." or something along those lines.

Thanks for a great and fast tool.

@zanieb zanieb added cli Related to the command line interface help wanted Contribution especially encouraged labels Oct 18, 2024
konstin added a commit that referenced this issue Oct 18, 2024
Show the user a proper error message when built without self-update instead of pretending the feature doesn't exist.

```
error: uv was installed through an external package manager, and self-update is not available. Please use your package manager to update uv.
```

Fixes #8318
@mahyarmirrashed
Copy link
Author

Thanks for the quick fix!

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 help wanted Contribution especially encouraged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants