Skip to content

Commit 100b96f

Browse files
authored
Merge pull request #3448 from tonistiigi/imagetools-empty-mediatype
imagetools: silence warning for empty-type meditype used in artifacts
2 parents 51bed6f + ba49355 commit 100b96f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

util/imagetools/create.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ func (r *Resolver) Push(ctx context.Context, ref reference.Named, desc ocispecs.
222222

223223
func (r *Resolver) Copy(ctx context.Context, src *Source, dest reference.Named) error {
224224
ctx = remotes.WithMediaTypeKeyPrefix(ctx, "application/vnd.in-toto+json", "intoto")
225+
ctx = remotes.WithMediaTypeKeyPrefix(ctx, "application/vnd.oci.empty.v1+json", "empty")
225226

226227
// push by digest
227228
p, err := r.resolver().Pusher(ctx, dest.Name())

0 commit comments

Comments
 (0)