diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-07-02 10:49:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 10:49:05 -0400 |
commit | 6f0bf16c83bcd71c31028a12e4a414cc41d02553 (patch) | |
tree | 87892be5c1bccfa4cc94bc6369f29c4529b2e826 | |
parent | ac740c649b9f84a6f7ae0c0ae4941f47b2ec59dc (diff) | |
parent | 37570b7b75ab30c6656c9ea82d5ca546f1ea1e5c (diff) | |
download | podman-6f0bf16c83bcd71c31028a12e4a414cc41d02553.tar.gz podman-6f0bf16c83bcd71c31028a12e4a414cc41d02553.tar.bz2 podman-6f0bf16c83bcd71c31028a12e4a414cc41d02553.zip |
Merge pull request #10845 from vrothberg/3.2-backports
[3.2] vendor containers/common@v0.38.14
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | go.sum | 4 | ||||
-rw-r--r-- | vendor/github.com/containers/common/libimage/filters.go | 4 | ||||
-rw-r--r-- | vendor/github.com/containers/common/libimage/pull.go | 5 | ||||
-rw-r--r-- | vendor/github.com/containers/common/libimage/save.go | 4 | ||||
-rw-r--r-- | vendor/github.com/containers/common/version/version.go | 2 | ||||
-rw-r--r-- | vendor/modules.txt | 2 |
7 files changed, 11 insertions, 12 deletions
@@ -12,7 +12,7 @@ require ( github.com/containernetworking/cni v0.8.1 github.com/containernetworking/plugins v0.9.1 github.com/containers/buildah v1.21.0 - github.com/containers/common v0.38.13 + github.com/containers/common v0.38.14 github.com/containers/conmon v2.0.20+incompatible github.com/containers/image/v5 v5.12.0 github.com/containers/ocicrypt v1.1.1 @@ -218,8 +218,8 @@ github.com/containernetworking/plugins v0.9.1/go.mod h1:xP/idU2ldlzN6m4p5LmGiwRD github.com/containers/buildah v1.21.0 h1:LuwuqRPjan3X3AIdGwfkEkqMgmrDMNpQznFqNdHgCz8= github.com/containers/buildah v1.21.0/go.mod h1:yPdlpVd93T+i91yGxrJbW1YOWrqN64j5ZhHOZmHUejs= github.com/containers/common v0.38.4/go.mod h1:egfpX/Y3+19Dz4Wa1eRZDdgzoEOeneieF9CQppKzLBg= -github.com/containers/common v0.38.13 h1:TfdLHVspQl2+t4sD4vUDY1PuJGWIXif6zJOGlu1ExYc= -github.com/containers/common v0.38.13/go.mod h1:egfpX/Y3+19Dz4Wa1eRZDdgzoEOeneieF9CQppKzLBg= +github.com/containers/common v0.38.14 h1:6fp6+NpG/JhhGboRuUuc4fDaXHoHnSW9n/qL2iGQlLA= +github.com/containers/common v0.38.14/go.mod h1:egfpX/Y3+19Dz4Wa1eRZDdgzoEOeneieF9CQppKzLBg= github.com/containers/conmon v2.0.20+incompatible h1:YbCVSFSCqFjjVwHTPINGdMX1F6JXHGTUje2ZYobNrkg= github.com/containers/conmon v2.0.20+incompatible/go.mod h1:hgwZ2mtuDrppv78a/cOBNiCm6O0UMWGx1mu7P00nu5I= github.com/containers/image/v5 v5.12.0 h1:1hNS2QkzFQ4lH3GYQLyAXB0acRMhS1Ubm6oV++8vw4w= diff --git a/vendor/github.com/containers/common/libimage/filters.go b/vendor/github.com/containers/common/libimage/filters.go index eae18fd9c..280e06761 100644 --- a/vendor/github.com/containers/common/libimage/filters.go +++ b/vendor/github.com/containers/common/libimage/filters.go @@ -63,14 +63,14 @@ func (r *Runtime) compileImageFilters(ctx context.Context, filters []string) ([] switch key { case "after", "since": - img, _, err := r.LookupImage(value, nil) + img, _, err := r.LookupImage(value, &LookupImageOptions{IgnorePlatform: true}) if err != nil { return nil, errors.Wrapf(err, "could not find local image for filter %q", filter) } filterFuncs = append(filterFuncs, filterAfter(img.Created())) case "before": - img, _, err := r.LookupImage(value, nil) + img, _, err := r.LookupImage(value, &LookupImageOptions{IgnorePlatform: true}) if err != nil { return nil, errors.Wrapf(err, "could not find local image for filter %q", filter) } diff --git a/vendor/github.com/containers/common/libimage/pull.go b/vendor/github.com/containers/common/libimage/pull.go index eaa494e3b..6ca24e913 100644 --- a/vendor/github.com/containers/common/libimage/pull.go +++ b/vendor/github.com/containers/common/libimage/pull.go @@ -61,7 +61,7 @@ func (r *Runtime) Pull(ctx context.Context, name string, pullPolicy config.PullP if pullPolicy == config.PullPolicyAlways { return nil, errors.Errorf("pull policy is always but image has been referred to by ID (%s)", name) } - local, _, err := r.LookupImage(name, nil) + local, _, err := r.LookupImage(name, &LookupImageOptions{IgnorePlatform: true}) if err != nil { return nil, err } @@ -136,9 +136,8 @@ func (r *Runtime) Pull(ctx context.Context, name string, pullPolicy config.PullP } localImages := []*Image{} - lookupOptions := &LookupImageOptions{IgnorePlatform: true} for _, name := range pulledImages { - local, _, err := r.LookupImage(name, lookupOptions) + local, _, err := r.LookupImage(name, &LookupImageOptions{IgnorePlatform: true}) if err != nil { return nil, errors.Wrapf(err, "error locating pulled image %q name in containers storage", name) } diff --git a/vendor/github.com/containers/common/libimage/save.go b/vendor/github.com/containers/common/libimage/save.go index e1b8c3f75..10d26bebf 100644 --- a/vendor/github.com/containers/common/libimage/save.go +++ b/vendor/github.com/containers/common/libimage/save.go @@ -74,7 +74,7 @@ func (r *Runtime) Save(ctx context.Context, names []string, format, path string, // saveSingleImage saves the specified image name to the specified path. // Supported formats are "oci-archive", "oci-dir" and "docker-dir". func (r *Runtime) saveSingleImage(ctx context.Context, name, format, path string, options *SaveOptions) error { - image, imageName, err := r.LookupImage(name, nil) + image, imageName, err := r.LookupImage(name, &LookupImageOptions{IgnorePlatform: true}) if err != nil { return err } @@ -155,7 +155,7 @@ func (r *Runtime) saveDockerArchive(ctx context.Context, names []string, path st visitedNames := make(map[string]bool) // filters duplicate names for _, name := range names { // Look up local images. - image, imageName, err := r.LookupImage(name, nil) + image, imageName, err := r.LookupImage(name, &LookupImageOptions{IgnorePlatform: true}) if err != nil { return err } diff --git a/vendor/github.com/containers/common/version/version.go b/vendor/github.com/containers/common/version/version.go index c6a17f761..5e09d56a2 100644 --- a/vendor/github.com/containers/common/version/version.go +++ b/vendor/github.com/containers/common/version/version.go @@ -1,4 +1,4 @@ package version // Version is the version of the build. -const Version = "0.38.13" +const Version = "0.38.14" diff --git a/vendor/modules.txt b/vendor/modules.txt index ec4838385..cada866cf 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -91,7 +91,7 @@ github.com/containers/buildah/pkg/overlay github.com/containers/buildah/pkg/parse github.com/containers/buildah/pkg/rusage github.com/containers/buildah/util -# github.com/containers/common v0.38.13 +# github.com/containers/common v0.38.14 github.com/containers/common/libimage github.com/containers/common/libimage/manifests github.com/containers/common/pkg/apparmor |