Merge pull request #1533 from stevvooe/specifier-default
platforms: provide simpler function for common use
This commit is contained in:
@@ -206,7 +206,7 @@ func getImageLayers(ctx gocontext.Context, image images.Image, cs content.Store)
|
||||
return nil, errors.Wrap(err, "failed to unmarshal manifest")
|
||||
}
|
||||
|
||||
diffIDs, err := image.RootFS(ctx, cs, platforms.Format(platforms.Default()))
|
||||
diffIDs, err := image.RootFS(ctx, cs, platforms.Default())
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to resolve rootfs")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user