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

uv self update #1591

Closed
woutervh opened this issue Feb 17, 2024 · 2 comments · Fixed by #2228
Closed

uv self update #1591

woutervh opened this issue Feb 17, 2024 · 2 comments · Fixed by #2228
Assignees
Labels
enhancement New feature or request

Comments

@woutervh
Copy link

Poetry can udate itself via

poetry self update

see
https://python-poetry.org/docs/cli/#self-update

An uv-equivalent would be nice, given the fast iterations

@notatallshaw
Copy link

notatallshaw commented Feb 17, 2024

FYI, I needed to do this yesterday and found uv pip install --reinstall uv worked.

I don't know if how you installed uv affects that, maybe that's only for via originally installing it from Pip.

@zanieb zanieb added the enhancement New feature or request label Feb 17, 2024
@zanieb
Copy link
Member

zanieb commented Feb 17, 2024

This is on the roadmap, probably via cargo-dist

@charliermarsh charliermarsh self-assigned this Mar 6, 2024
charliermarsh added a commit that referenced this issue Mar 19, 2024
## Summary

Powered by Axo: https://github.com/axodotdev/axoupdater.

Closes #1591.

## Test Plan

To test locally:

- `rm -f ~/.config/uv/uv-receipt.json /Users/crmarsh/.cargo/bin/uv`
- `curl --proto '=https' --tlsv1.2 -LsSf
https://github.com/astral-sh/uv/releases/download/0.1.14/uv-installer.sh
| sh`
- `cargo run self update`

Up-to-date:

![Screenshot 2024-03-06 at 12 13
36 AM](https://github.com/astral-sh/uv/assets/1309177/04bb7a11-6557-4317-8e86-18288fbc13c6)

Updated:

![Screenshot 2024-03-06 at 12 13
54 AM](https://github.com/astral-sh/uv/assets/1309177/c08ad739-5a2b-47cf-bf13-018a8d708330)

No receipt:

![Screenshot 2024-03-06 at 12 14
13 AM](https://github.com/astral-sh/uv/assets/1309177/317bbfaf-a787-4cbf-9f93-a4ce8ca7a988)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants