Skip to content

Commit

Permalink
Merge pull request containers#3358 from vrothberg/vendor-common
Browse files Browse the repository at this point in the history
vendor containers/common@main
  • Loading branch information
openshift-merge-robot authored Jul 7, 2021
2 parents 66a54ca + fbd99d0 commit 2eb97b4
Show file tree
Hide file tree
Showing 95 changed files with 4,164 additions and 1,925 deletions.
2 changes: 2 additions & 0 deletions cmd/buildah/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ func init() {
}

cobra.OnInitialize(initConfig)
// Disable the implicit `completion` command in cobra.
rootCmd.CompletionOptions.DisableDefaultCmd = true
//rootCmd.TraverseChildren = true
rootCmd.Version = fmt.Sprintf("%s (image-spec %s, runtime-spec %s)", define.Version, ispecs.Version, rspecs.Version)
rootCmd.PersistentFlags().BoolVar(&globalFlagResults.Debug, "debug", false, "print debugging information")
Expand Down
3 changes: 1 addition & 2 deletions cmd/buildah/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ func tagCmd(c *cobra.Command, args []string) error {
return err
}

lookupOptions := libimage.LookupImageOptions{IgnorePlatform: true}
image, _, err := runtime.LookupImage(args[0], &lookupOptions)
image, _, err := runtime.LookupImage(args[0], nil)
if err != nil {
return err
}
Expand Down
5 changes: 5 additions & 0 deletions contrib/cirrus/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ else
showrun make test-conformance
;;
integration)
# FIXME: drop the `rm` below once containers.conf has been fixed.
# It complains about failing to "to decode the keys ["secret"
# "secret.opts"]" which is in process of getting fixed but will
# take a while until it hits all distributions.
showrun rm /usr/share/containers/containers.conf
showrun make test-integration
;;
*)
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.12

require (
github.com/containernetworking/cni v0.8.1
github.com/containers/common v0.40.1
github.com/containers/common v0.40.2-0.20210707094508-0a4a1906d4b2
github.com/containers/image/v5 v5.13.2
github.com/containers/ocicrypt v1.1.2
github.com/containers/storage v1.32.5
Expand All @@ -29,13 +29,13 @@ require (
github.com/pkg/errors v0.9.1
github.com/seccomp/libseccomp-golang v0.9.2-0.20200616122406-847368b35ebf
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.1.3
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.0
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635
go.etcd.io/bbolt v1.3.6
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/sys v0.0.0-20210603125802-9665404d3644
k8s.io/klog v1.0.0 // indirect
)
Expand Down
193 changes: 179 additions & 14 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func FindImage(store storage.Store, firstRegistry string, systemContext *types.S
return nil, nil, err
}

localImage, _, err := runtime.LookupImage(image, &libimage.LookupImageOptions{IgnorePlatform: true})
localImage, _, err := runtime.LookupImage(image, nil)
if err != nil {
return nil, nil, err
}
Expand Down
28 changes: 23 additions & 5 deletions vendor/github.com/containers/common/libimage/image.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 19 additions & 9 deletions vendor/github.com/containers/common/libimage/import.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/containers/common/libimage/load.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

71 changes: 59 additions & 12 deletions vendor/github.com/containers/common/libimage/pull.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions vendor/github.com/containers/common/libimage/push.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2eb97b4

Please sign in to comment.