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

rye list: Never modify or delete the virtualenv #1351

Merged
merged 8 commits into from
Sep 3, 2024

Conversation

bluss
Copy link
Contributor

@bluss bluss commented Aug 25, 2024

Previously, in some situations, rye pin <pythonversion>; rye list could lead to rye deleting the existing virtualenv.

I suggest that rye list should be an interrogator and never modify any project. With this change, it lists its own and non-rye virtualenvs (same behaviour as uv pip freeze) but should never create, recreate or overwrite environments (own or non-rye).

Fixes #1352

@bluss bluss marked this pull request as draft August 25, 2024 12:37
@bluss
Copy link
Contributor Author

bluss commented Aug 25, 2024

Making draft while figuring out some questions in #940.

Edit: Now seems to be solved, the added test here fails before the fix and passes now.

@bluss bluss marked this pull request as ready for review August 25, 2024 13:40
@charliermarsh charliermarsh self-assigned this Sep 3, 2024
@charliermarsh charliermarsh added the bug Something isn't working label Sep 3, 2024
Copy link
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

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

This makes sense to me, thanks. I just tweaked some of the names.

@charliermarsh charliermarsh enabled auto-merge (squash) September 3, 2024 02:13
@charliermarsh charliermarsh merged commit 06db9d3 into astral-sh:main Sep 3, 2024
8 checks passed
@bluss bluss deleted the list-should-not-delete branch September 3, 2024 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rye list overwrites (managed) venv if python version does not match
2 participants