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

Support legacy tool receipts with PEP 508 requirements #5679

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Aug 1, 2024

Summary

In #5494, I made breaking changes to the tool receipt format. This would break existing tools for all users. This PR makes the change backwards-compatible by supporting deserialization for the deprecated format.

Closes #5680.

Test Plan

Beyond the automated tests, you can run cargo run tool list on your existing machine.

Before:

warning: `uv tool list` is experimental and may change without warning
warning: Ignoring malformed tool `black` (run `uv tool uninstall black` to remove)
warning: Ignoring malformed tool `poetry` (run `uv tool uninstall poetry` to remove)
warning: Ignoring malformed tool `ruff` (run `uv tool uninstall ruff` to remove)

After:

warning: `uv tool list` is experimental and may change without warning
black v0.1.0
- black
poetry v1.8.3
- poetry
ruff v0.0.60
- ruff

@charliermarsh charliermarsh added bug Something isn't working preview Experimental behavior labels Aug 1, 2024
@charliermarsh charliermarsh merged commit ff2e1fc into main Aug 1, 2024
57 checks passed
@charliermarsh charliermarsh deleted the charlie/dep branch August 1, 2024 16:43
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 this pull request may close these issues.

Avoid breaking change for tool receipt format
2 participants