Skip to content

Commit

Permalink
version: also note the version of containers/image
Browse files Browse the repository at this point in the history
Include the containers/image version in our version output.

Signed-off-by: Nalin Dahyabhai <[email protected]>

Closes: #1902
Approved by: rhatdan
  • Loading branch information
nalind authored and rh-atomic-bot committed Oct 28, 2019
1 parent f0cf07b commit 9afaf74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/buildah/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (

cniversion "github.com/containernetworking/cni/pkg/version"
"github.com/containers/buildah"
iversion "github.com/containers/image/v5/version"
ispecs "github.com/opencontainers/image-spec/specs-go"
rspecs "github.com/opencontainers/runtime-spec/specs-go"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -38,6 +39,7 @@ func versionCmd(c *cobra.Command, args []string) error {
fmt.Println("Runtime Spec: ", rspecs.Version)
fmt.Println("CNI Spec: ", cniversion.Current())
fmt.Println("libcni Version: ", cniVersion)
fmt.Println("image Version: ", iversion.Version)
fmt.Println("Git Commit: ", GitCommit)

//Prints out the build time in readable format
Expand Down
2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ github.com/containers/image/v5/transports
github.com/containers/image/v5/transports/alltransports
github.com/containers/image/v5/types
github.com/containers/image/v5/pkg/docker/config
github.com/containers/image/v5/version
github.com/containers/image/v5/pkg/strslice
github.com/containers/image/v5/pkg/blobinfocache
github.com/containers/image/v5/pkg/compression
Expand All @@ -71,7 +72,6 @@ github.com/containers/image/v5/pkg/blobinfocache/none
github.com/containers/image/v5/pkg/tlsclientconfig
github.com/containers/image/v5/internal/tmpdir
github.com/containers/image/v5/oci/internal
github.com/containers/image/v5/version
github.com/containers/image/v5/docker/daemon
github.com/containers/image/v5/openshift
github.com/containers/image/v5/ostree
Expand Down

0 comments on commit 9afaf74

Please sign in to comment.