Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion flytekit/image_spec/image_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,11 @@ def should_build(self, image_spec: ImageSpec) -> bool:
return True
click.secho(f"Image {img_name} found. Skip building.", fg="blue")
else:
click.secho(f"Flytekit assumes the image {img_name} already exists.", fg="blue")
raise RuntimeError(
f"Could not verify if image {img_name} exists. "
f"Please ensure Docker is running and AWS CLI is configured for ECR access. "
f"You can also set FLYTE_FORCE_PUSH_IMAGE_SPEC=1 to force rebuild."
)
return False


Expand Down