mirror of
https://github.com/containers/podman.git
synced 2025-11-13 09:38:05 +08:00
Vendor in containers/(storage,image, common, buildah)
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
5
vendor/github.com/containers/buildah/push.go
generated
vendored
5
vendor/github.com/containers/buildah/push.go
generated
vendored
@@ -17,7 +17,6 @@ import (
|
||||
"github.com/containers/storage"
|
||||
"github.com/containers/storage/pkg/archive"
|
||||
digest "github.com/opencontainers/go-digest"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
@@ -33,7 +32,7 @@ func cacheLookupReferenceFunc(directory string, compress types.LayerCompression)
|
||||
}
|
||||
ref, err := blobcache.NewBlobCache(ref, directory, compress)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "error using blobcache %q", directory)
|
||||
return nil, fmt.Errorf("error using blobcache %q: %w", directory, err)
|
||||
}
|
||||
return ref, nil
|
||||
}
|
||||
@@ -136,7 +135,7 @@ func Push(ctx context.Context, image string, dest types.ImageReference, options
|
||||
|
||||
manifestDigest, err := manifest.Digest(manifestBytes)
|
||||
if err != nil {
|
||||
return nil, "", errors.Wrapf(err, "error computing digest of manifest of new image %q", transports.ImageName(dest))
|
||||
return nil, "", fmt.Errorf("error computing digest of manifest of new image %q: %w", transports.ImageName(dest), err)
|
||||
}
|
||||
|
||||
var ref reference.Canonical
|
||||
|
||||
Reference in New Issue
Block a user