Skip to content

Commit

Permalink
fix attach
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Oct 17, 2023
1 parent 0de9997 commit e0f810a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/oras/root/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ func updateDisplayOption(opts *oras.CopyGraphOptions, fetcher content.Fetcher, v
committed := &sync.Map{}
opts.OnCopySkipped = func(ctx context.Context, desc ocispec.Descriptor) error {
committed.Store(desc.Digest.String(), desc.Annotations[ocispec.AnnotationTitle])
if tracked == nil {
return display.PrintStatus(desc, "Exists ", verbose)
}
return tracked.Prompt(desc, "Exists ", verbose)
}
if tracked == nil {
Expand Down

0 comments on commit e0f810a

Please sign in to comment.