From ca757c1682f1593631c1efbf7fce8612709e26f0 Mon Sep 17 00:00:00 2001 From: Till Toenshoff Date: Fri, 22 Apr 2022 19:57:39 -0400 Subject: [PATCH 1/2] feat: introduces no-tags option for inspect --- skopeo/skopeo.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/skopeo/skopeo.go b/skopeo/skopeo.go index 105653f3..282f779d 100644 --- a/skopeo/skopeo.go +++ b/skopeo/skopeo.go @@ -77,6 +77,12 @@ func All() SkopeoOption { } } +func NoTags() SkopeoOption { + return func() string { + return "--no-tags" + } +} + func IndexOnly() SkopeoOption { return func() string { return "--multi-arch=index-only" From 8d1ff51c09a072d2e3b8a7cd04655af8019818f3 Mon Sep 17 00:00:00 2001 From: Till Toenshoff Date: Fri, 22 Apr 2022 20:01:06 -0400 Subject: [PATCH 2/2] feat: ignore tags when inspecting --- cmd/create/imagebundle/image_bundle.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/create/imagebundle/image_bundle.go b/cmd/create/imagebundle/image_bundle.go index 91b83920..3b42d109 100644 --- a/cmd/create/imagebundle/image_bundle.go +++ b/cmd/create/imagebundle/image_bundle.go @@ -147,6 +147,7 @@ func NewCommand(out output.Output) *cobra.Command { srcImageManifestList, skopeoStdout, skopeoStderr, err := skopeoRunner.InspectManifest( context.Background(), fmt.Sprintf("%s%s", srcSkopeoScheme, srcImageName), + skopeo.NoTags(), ) if err != nil { srcSkopeoScheme = "docker-daemon:"