Skip to content

Commit ba49355

Browse files
committed
imagetools: silence warning for empty-type meditype used in artifacts
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
1 parent 51bed6f commit ba49355

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)