Fix: Add --active flag to uv sync command to fix virtual environment detection

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-05-15 17:56:48 +00:00
parent 409892d65f
commit 4a32d9310c
2 changed files with 55 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ def install_crew(proxy_options: list[str]) -> None:
Install the crew by running the UV command to lock and install.
"""
try:
command = ["uv", "sync"] + proxy_options
command = ["uv", "sync", "--active"] + proxy_options
subprocess.run(command, check=True, capture_output=False, text=True)
except subprocess.CalledProcessError as e: