fix(standalone): pass --python to uv pip install to target project venv by jeremybeard · Pull Request #2029 · astronomer/astro-cli

@jeremybeard marked this pull request as ready for review

March 5, 2026 20:13

@jeremybeard @claude

When the CLI is launched from inside an activated venv (e.g. via `uv run`),
the inherited VIRTUAL_ENV env var causes `uv pip install` to target the
parent venv instead of the project's .venv, leaving .venv/bin/airflow missing.

Pass --python .venv/bin/python explicitly to uv pip install commands so they
always install into the project venv regardless of the parent environment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@jeremybeard jeremybeard changed the title fix(standalone): strip VIRTUAL_ENV from env before uv commands fix(standalone): pass --python to uv pip install to target project venv

Mar 6, 2026