From ba4935585cf1086538301312e21f428e82567e3d Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Thu, 2 Oct 2025 10:42:38 -0700 Subject: [PATCH] imagetools: silence warning for empty-type meditype used in artifacts Signed-off-by: Tonis Tiigi --- util/imagetools/create.go | 1 + 1 file changed, 1 insertion(+) diff --git a/util/imagetools/create.go b/util/imagetools/create.go index b266286e7..89eb7ab0b 100644 --- a/util/imagetools/create.go +++ b/util/imagetools/create.go @@ -222,6 +222,7 @@ func (r *Resolver) Push(ctx context.Context, ref reference.Named, desc ocispecs. func (r *Resolver) Copy(ctx context.Context, src *Source, dest reference.Named) error { ctx = remotes.WithMediaTypeKeyPrefix(ctx, "application/vnd.in-toto+json", "intoto") + ctx = remotes.WithMediaTypeKeyPrefix(ctx, "application/vnd.oci.empty.v1+json", "empty") // push by digest p, err := r.resolver().Pusher(ctx, dest.Name())