From 872c669241333110b2dbe2dffe20591531a6f556 Mon Sep 17 00:00:00 2001 From: ashpect Date: Sun, 20 Aug 2023 20:55:06 +0530 Subject: [PATCH] Fix #544 Signed-off-by: ashpect --- pkg/imgpkg/cmd/pull.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/imgpkg/cmd/pull.go b/pkg/imgpkg/cmd/pull.go index 97cde176b..63c3e0d07 100644 --- a/pkg/imgpkg/cmd/pull.go +++ b/pkg/imgpkg/cmd/pull.go @@ -130,5 +130,9 @@ func (po *PullOptions) validate() error { if po.BundleRecursiveFlags.Recursive && len(po.ImageFlags.Image) > 0 { return fmt.Errorf("Cannot use --recursive (-r) flag when pulling a bundle") } + + if !po.ImageIsBundleCheck && len(po.BundleFlags.Bundle) != 0 { + return fmt.Errorf("Cannot set --image-is-bundle-check while using -b flag") + } return nil }