You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case, rye list overwrites the venv. In this test case, the project is rye managed, but it's still surprising that rye list modifies the project.
mkdir project; cd project; rye init -p 3.12; rye sync; rye pin 3.11.7; rye list; cd -
Using uv 0.3.3
Expected Result
rye list keeps the existing virtualenv
Actual Result
rye list overwrites .venv with a new empty venv.
We have tool.rye.managed=true but are still surprised that rye list was destructive.
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
Steps to Reproduce
In this case, rye list overwrites the venv. In this test case, the project is rye managed, but it's still surprising that rye list modifies the project.
mkdir project; cd project; rye init -p 3.12; rye sync; rye pin 3.11.7; rye list; cd -
Using uv 0.3.3
Expected Result
rye list
keeps the existing virtualenvActual Result
rye list
overwrites.venv
with a new empty venv.We have tool.rye.managed=true but are still surprised that rye list was destructive.
Version Info
rye 0.39.0
commit: 0.39.0 (bf3ccf8 2024-08-21)
platform: linux (x86_64)
self-python: cpython@3.12.4
symlink support: true
uv enabled: true
Stacktrace
No response
The text was updated successfully, but these errors were encountered: