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 tool install fails on invalid receipt #5295

Closed
zanieb opened this issue Jul 22, 2024 · 0 comments · Fixed by #5305
Closed

uv tool install fails on invalid receipt #5295

zanieb opened this issue Jul 22, 2024 · 0 comments · Fixed by #5305
Assignees
Labels
bug Something isn't working preview Experimental behavior

Comments

@zanieb
Copy link
Member

zanieb commented Jul 22, 2024

An old receipt breaks the install, we should overwrite it or provide a better message:

❯ uv tool install ruff
warning: `uv tool install` is experimental and may change without warning
error: Failed to read `uv-receipt.toml` at /Users/zb/Library/Application Support/uv/tools/ruff/uv-receipt.toml
  Caused by: TOML parse error at line 1, column 1
  |
1 | [tool]
  | ^^^^^^
missing field `entrypoints`
❯ cat "/Users/zb/Library/Application Support/uv/tools/ruff/uv-receipt.toml"
[tool]
requirements = ["ruff"]
@charliermarsh charliermarsh added the bug Something isn't working label Jul 22, 2024
@charliermarsh charliermarsh self-assigned this Jul 22, 2024
@charliermarsh charliermarsh added the preview Experimental behavior label Jul 22, 2024
charliermarsh added a commit that referenced this issue Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preview Experimental behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants