fix(cli): validate --tag before any control plane call

This commit is contained in:
Hugo Durand
2026-09-18 15:11:39 -04:00
parent e7cee81602
commit 2d38d0ad96
2 changed files with 15 additions and 3 deletions
@@ -642,3 +642,13 @@ def test_push_to_with_deployment_id_fetches_the_deployment_once(
"docker inspect-digest",
_patch("dep-ext"),
]
def test_invalid_tag_fails_before_any_control_plane_call(
deploy_project: DeployProject,
) -> None:
result = deploy_project.run("--no-remote", "--tag", "not a tag")
assert result.exit_code != 0
assert "Image tag may only contain" in result.output
assert deploy_project.timeline == []