Skip to content

Commit

Permalink
fix: resolve regression made in #1164 (#1170)
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
  • Loading branch information
qweeah committed Nov 4, 2023
1 parent d9b2c5c commit 24ac0c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/oras/root/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ func doPull(ctx context.Context, src oras.ReadOnlyTarget, dst oras.GraphTarget,
for _, s := range nodes {
if s.Annotations[ocispec.AnnotationTitle] == "" {
if content.Equal(s, ocispec.DescriptorEmptyJSON) {
// empty layer
continue
}
if s.Annotations[ocispec.AnnotationTitle] == "" {
// unnamed layers are skipped
skippedLayers++
}
ss, err := content.Successors(ctx, fetcher, s)
Expand Down

0 comments on commit 24ac0c5

Please sign in to comment.