Merge pull request #3448 from tonistiigi/imagetools-empty-mediatype

imagetools: silence warning for empty-type meditype used in artifacts
This commit is contained in:
CrazyMax
2025-10-03 11:41:26 +02:00
committed by GitHub
+1
View File
@@ -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())