Skip to content

Commit

Permalink
Vendor c/common:9d025e4cb348
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Rodák <[email protected]>
  • Loading branch information
Honny1 committed Aug 30, 2024
1 parent 6925972 commit 11ae3e2
Show file tree
Hide file tree
Showing 427 changed files with 19,114 additions and 28,444 deletions.
18 changes: 17 additions & 1 deletion cmd/buildah/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,26 @@ func imagesCmd(c *cobra.Command, args []string, iopts *imageResults) error {
options.Filters = append(options.Filters, "intermediate=false")
}

images, err := runtime.ListImages(ctx, args, options)
imagesByNames, err := runtime.ListImagesByNames(args)
if err != nil {
return err
}
imagesByFilter, err := runtime.ListImages(ctx, options)
if err != nil {
return err
}

imagesByNameIDs := map[string]bool{}
for _, image := range imagesByNames {
imagesByNameIDs[image.ID()] = true
}

images := make([]*libimage.Image, 0, len(imagesByNames))
for _, image := range imagesByFilter {
if _, ok := imagesByNameIDs[image.ID()]; ok {
images = append(images, image)
}
}

if iopts.quiet && iopts.format != "" {
return errors.New("quiet and format are mutually exclusive")
Expand Down
28 changes: 13 additions & 15 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ go 1.21.0 // ***** ATTENTION WARNING CAUTION DANGER ******
require (
github.com/containerd/platforms v0.2.1
github.com/containernetworking/cni v1.2.3
github.com/containers/common v0.60.2
github.com/containers/common v0.60.1-0.20240829150358-9d025e4cb348
github.com/containers/image/v5 v5.32.2
github.com/containers/luksy v0.0.0-20240708191104-1f482a9731bc
github.com/containers/ocicrypt v1.2.0
github.com/containers/storage v1.55.0
github.com/containers/storage v1.55.1-0.20240821103551-8ec73cadc730
github.com/cyphar/filepath-securejoin v0.3.1
github.com/docker/distribution v2.8.3+incompatible
github.com/docker/docker v27.2.0+incompatible
Expand All @@ -36,7 +36,7 @@ require (
github.com/moby/buildkit v0.15.1
github.com/opencontainers/go-digest v1.0.0
github.com/opencontainers/image-spec v1.1.0
github.com/opencontainers/runc v1.1.13
github.com/opencontainers/runc v1.2.0-rc.2.0.20240801140032-ad5b481dace5
github.com/opencontainers/runtime-spec v1.2.0
github.com/opencontainers/runtime-tools v0.9.1-0.20230914150019-408c51e934dc
github.com/opencontainers/selinux v1.11.0
Expand All @@ -62,15 +62,13 @@ require (
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
github.com/BurntSushi/toml v1.4.0 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/Microsoft/hcsshim v0.12.5 // indirect
github.com/Microsoft/hcsshim v0.12.6 // indirect
github.com/VividCortex/ewma v1.2.0 // indirect
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d // indirect
github.com/aead/serpent v0.0.0-20160714141033-fba169763ea6 // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/chzyer/readline v1.5.1 // indirect
github.com/cilium/ebpf v0.11.0 // indirect
github.com/containerd/cgroups/v3 v3.0.3 // indirect
github.com/containerd/containerd v1.7.20 // indirect
github.com/containerd/errdefs v0.1.0 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/containerd/stargz-snapshotter/estargz v0.15.1 // indirect
Expand Down Expand Up @@ -102,7 +100,7 @@ require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-containerregistry v0.20.0 // indirect
github.com/google/go-containerregistry v0.20.1 // indirect
github.com/google/go-intervals v0.0.2 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/mux v1.8.1 // indirect
Expand Down Expand Up @@ -148,21 +146,21 @@ require (
github.com/ulikunitz/xz v0.5.12 // indirect
github.com/vbatts/tar-split v0.11.5 // indirect
github.com/vbauerster/mpb/v8 v8.7.5 // indirect
github.com/vishvananda/netlink v1.2.1-beta.2 // indirect
github.com/vishvananda/netlink v1.3.0 // indirect
github.com/vishvananda/netns v0.0.4 // indirect
go.mongodb.org/mongo-driver v1.14.0 // indirect
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect
go.opentelemetry.io/otel v1.24.0 // indirect
go.opentelemetry.io/otel/metric v1.24.0 // indirect
go.opentelemetry.io/otel/trace v1.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
go.opentelemetry.io/otel v1.28.0 // indirect
go.opentelemetry.io/otel/metric v1.28.0 // indirect
go.opentelemetry.io/otel/trace v1.28.0 // indirect
golang.org/x/mod v0.19.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/text v0.17.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 // indirect
google.golang.org/grpc v1.64.1 // indirect
google.golang.org/protobuf v1.34.1 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 // indirect
google.golang.org/grpc v1.65.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/klog v1.0.0 // indirect
tags.cncf.io/container-device-interface/specs-go v0.8.0 // indirect
Expand Down
Loading

0 comments on commit 11ae3e2

Please sign in to comment.