Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Dec 19, 2023
1 parent a2d2fa2 commit 88d3f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/oras/root/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func doPull(ctx context.Context, src oras.ReadOnlyTarget, dst oras.GraphTarget,
for _, s := range successors {
if name, ok := s.Annotations[ocispec.AnnotationTitle]; ok {
result.filesLock.Lock()
result.files = append(result.files, meta.NewFile(name, po.Output, desc, po.Path))
result.files = append(result.files, meta.NewFile(name, po.Output, s, po.Path))
result.filesLock.Unlock()
if err := printOnce(&printed, s, promptRestored, po.Verbose, tracked); err != nil {
return err
Expand Down

0 comments on commit 88d3f4b

Please sign in to comment.