Skip to content

Commit 99ba29c

Browse files
Merge pull request #3512 from fuweid/cp-3484
[release/1.2] cherry-pick: Limit multiple platform manifests to one for size check
2 parents 6e4353d + 47e5d5f commit 99ba29c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

images/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (image *Image) Size(ctx context.Context, provider content.Provider, platfor
119119
}
120120
size += desc.Size
121121
return nil, nil
122-
}), FilterPlatforms(ChildrenHandler(provider), platform)), image.Target)
122+
}), LimitManifests(FilterPlatforms(ChildrenHandler(provider), platform), platform, 1)), image.Target)
123123
}
124124

125125
type platformManifest struct {

0 commit comments

Comments
 (0)