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
#14 [python_builder 6/9] RUN uv sync --locked --no-default-groups --no-install-project
#14 0.113 warning: `VIRTUAL_ENV=/opt/venv` does not match the project environment path `.venv` and will be ignored; use `--active` to target the active environment instead
In the case of python-blueprint it ends up "working" because
RUN uv build && \
pip install dist/*.whl
will install the (unlocked) dependencies for the project.
The recommended alternative from uv is UV_PROJECT_ENVIRONMENT
Oversight in
uv
#255uv sync
does not respectVIRTUAL_ENV
like Poetry diduv add
/uv sync
/... do not respect the active virtualenv, should they? astral-sh/uv#6612 (comment)uv sync
astral-sh/uv#5229In the case of
python-blueprint
it ends up "working" becauseRUN uv build && \ pip install dist/*.whl
will install the (unlocked) dependencies for the project.
The recommended alternative from
uv
isUV_PROJECT_ENVIRONMENT
UV_PROJECT_ENVIRONMENT
astral-sh/uv#6834Or the default
.venv
could be hard-coded.The text was updated successfully, but these errors were encountered: