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
Describe the bug
When using languages.python.uv.sync.enable = true and languages.python.venv.enable = true the devenv:python:virtualenv task, that runs after devenv:python:uv recreates the virtualenv with uv venv $DEVENV_STATE/venv.
The behavior only appears initially when the virtualenv is created. When reloading the shell the virtualenv is not recreated, because it already exists and uv sync is run again, because the uv.sync.checksum file was deleted.
Expected behavior
When setting both options the virtualenv should only be sourced and not recreated.
To reproduce
The following test exhibits the same problem:
However for some reason the test itself passes when run with devenv-run-tests --only python-uv-sync. To reproduce the problem run cd tests/python-uv-sync && ../../result/bin/devenv shell:
$ python -c 'import requests'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'requests'
Version
devenv 1.3.1 (x86_64-linux)
Also tested with f8be0ed and with uv 0.5.29 (unstable) and 0.4.30 (rolling).
Describe the bug
When using
languages.python.uv.sync.enable = true
andlanguages.python.venv.enable = true
thedevenv:python:virtualenv
task, that runs afterdevenv:python:uv
recreates the virtualenv withuv venv $DEVENV_STATE/venv
.The behavior only appears initially when the virtualenv is created. When reloading the shell the virtualenv is not recreated, because it already exists and
uv sync
is run again, because theuv.sync.checksum
file was deleted.Expected behavior
When setting both options the virtualenv should only be sourced and not recreated.
To reproduce
The following test exhibits the same problem:
devenv/tests/python-uv-sync/devenv.nix
Line 9 in f8be0ed
However for some reason the test itself passes when run with
devenv-run-tests --only python-uv-sync
. To reproduce the problem runcd tests/python-uv-sync && ../../result/bin/devenv shell
:Version
Also tested with f8be0ed and with uv 0.5.29 (unstable) and 0.4.30 (rolling).
Related: #1626
The text was updated successfully, but these errors were encountered: