Fix Docker error volume name is too short during project generation (#6086)

* Fix Docker error: volume name is too short

* Resolve absolute path for current working directory to create docker volume
This commit is contained in:
Bruno Alla 2025-10-01 17:43:01 +01:00 committed by GitHub
parent 18c93b6c8c
commit bfa1704329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -535,8 +535,9 @@ def setup_dependencies():
print(f"Error building Docker image: {e}", file=sys.stderr)
sys.exit(1)
current_path = Path.cwd().absolute()
# Use Docker to run the uv command
uv_cmd = ["docker", "run", "--rm", "-v", ".:/app", uv_image_tag, "uv"]
uv_cmd = ["docker", "run", "--rm", "-v", f"{current_path}:/app", uv_image_tag, "uv"]
else:
# Use uv command directly
uv_cmd = ["uv"]