From 6092955783180b332b1a1b3c857e509ee1ccb284 Mon Sep 17 00:00:00 2001 From: baude Date: Fri, 6 Jul 2018 10:13:23 -0500 Subject: remove buildah requirement for the libpod image library if we snip the requirement to use a buildah const in the libpod image library, we can save something on the order of 85 vendored files in consumers of the the library. Signed-off-by: baude Closes: #1054 Approved by: mheon --- libpod/image/image.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libpod/image/image.go') diff --git a/libpod/image/image.go b/libpod/image/image.go index b56617ae7..5dd2c57f3 100644 --- a/libpod/image/image.go +++ b/libpod/image/image.go @@ -22,7 +22,6 @@ import ( "github.com/opencontainers/go-digest" ociv1 "github.com/opencontainers/image-spec/specs-go/v1" "github.com/pkg/errors" - "github.com/projectatomic/buildah" "github.com/projectatomic/libpod/libpod/common" "github.com/projectatomic/libpod/libpod/driver" "github.com/projectatomic/libpod/pkg/inspect" @@ -940,7 +939,7 @@ func (i *Image) Containers() ([]string, error) { // Comment returns the Comment for an image depending on its ManifestType func (i *Image) Comment(ctx context.Context, manifestType string) (string, error) { - if manifestType == buildah.Dockerv2ImageManifest { + if manifestType == manifest.DockerV2Schema2MediaType { imgRef, err := i.toImageRef(ctx) if err != nil { return "", errors.Wrapf(err, "unable to create image reference from image") -- cgit v1.2.3-54-g00ecf