mirror of
https://github.com/containers/podman.git
synced 2025-09-28 09:15:26 +08:00
Vendor in containers/buildah v1.19.3
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
8
vendor/github.com/containers/buildah/new.go
generated
vendored
8
vendor/github.com/containers/buildah/new.go
generated
vendored
@ -150,10 +150,10 @@ func resolveImage(ctx context.Context, systemContext *types.SystemContext, store
|
||||
return nil, "", nil, err
|
||||
}
|
||||
|
||||
// If we could resolve the image locally, check if it was referenced by
|
||||
// ID. In that case, we don't need to bother any further and can
|
||||
// prevent prompting the user.
|
||||
if localImage != nil && strings.HasPrefix(localImage.ID, options.FromImage) {
|
||||
// If we could resolve the image locally, check if it was clearly
|
||||
// referring to a local image, either by ID or digest. In that case,
|
||||
// we don't need to perform a remote lookup.
|
||||
if localImage != nil && (strings.HasPrefix(localImage.ID, options.FromImage) || strings.HasPrefix(options.FromImage, "sha256:")) {
|
||||
return localImageRef, localImageRef.Transport().Name(), localImage, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user