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

Replace tool environments on updated Python request #4746

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

charliermarsh
Copy link
Member

Summary

Closes #4741.

@charliermarsh charliermarsh added enhancement New feature or improvement to existing functionality preview Experimental behavior labels Jul 2, 2024
@charliermarsh charliermarsh force-pushed the charlie/tool-env branch 2 times, most recently from 37d2dc3 to 75d9c7e Compare July 2, 2024 22:33
let python_request = python.as_deref().map(ToolchainRequest::parse);

// Pre-emptively identify a Python interpreter. We need an interpreter to resolve any unnamed
// requirements, even if we end up using a different interpreter for the tool install itself.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is somewhat annoying.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Not a behavior change, just forced to explain why now. I'm not sure how to avoid it. I can try to make it lazy.)

@charliermarsh charliermarsh enabled auto-merge (squash) July 2, 2024 23:01
@charliermarsh charliermarsh merged commit 7573145 into main Jul 2, 2024
47 checks passed
@charliermarsh charliermarsh deleted the charlie/tool-env branch July 2, 2024 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing functionality preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uv tool install should recreate environment if it's not consistent with --python
2 participants