fix(deploy): honor --skip-validate for preflight project-structure check

This commit is contained in:
Greyson Lalonde
2026-05-05 05:01:50 +08:00
parent 97b7cede2c
commit 94bd89f4e2

View File

@@ -126,7 +126,8 @@ class DeployCommand(BaseCommand, PlusAPIMixin):
uuid (Optional[str]): The UUID of the crew to deploy.
skip_validate (bool): Skip pre-deploy validation checks.
"""
self._validate_project_structure()
if not skip_validate:
self._validate_project_structure()
if not _run_predeploy_validation(skip_validate):
return
self._telemetry.start_deployment_span(uuid)
@@ -150,7 +151,8 @@ class DeployCommand(BaseCommand, PlusAPIMixin):
confirm (bool): Whether to skip the interactive confirmation prompt.
skip_validate (bool): Skip pre-deploy validation checks.
"""
self._validate_project_structure()
if not skip_validate:
self._validate_project_structure()
if not _run_predeploy_validation(skip_validate):
return
self._telemetry.create_crew_deployment_span()