diff --git a/cmd/oras/root/pull.go b/cmd/oras/root/pull.go index a691eb25c..a2fdab6a1 100644 --- a/cmd/oras/root/pull.go +++ b/cmd/oras/root/pull.go @@ -303,10 +303,6 @@ func doPull(ctx context.Context, src oras.ReadOnlyTarget, dst oras.GraphTarget, return nil } name = desc.MediaType - } else { - result.filesLock.Lock() - result.files = append(result.files, meta.NewFile(name, po.Output, desc, fmt.Sprintf("%s@%s", po.Path, desc.Digest))) - result.filesLock.Unlock() } printed.Store(generateContentKey(desc), true) if po.TTY == nil {