summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-03-04 09:46:24 -0500
committerGitHub <noreply@github.com>2021-03-04 09:46:24 -0500
commit87a78c059dc2fb72ba54805d5488f3e619ae46f1 (patch)
treea6c7ca6a504f71b1af2307fcdfbbae6787d73b6b /libpod
parent17cacea3fa2bf0df20572720b9a0a3be35f2ef7b (diff)
parentf86d64130838fbeb75ea2776a2f2b6c4a49e58b3 (diff)
downloadpodman-87a78c059dc2fb72ba54805d5488f3e619ae46f1.tar.gz
podman-87a78c059dc2fb72ba54805d5488f3e619ae46f1.tar.bz2
podman-87a78c059dc2fb72ba54805d5488f3e619ae46f1.zip
Merge pull request #9601 from jwhonce/issues/9207
Use version package to track all versions
Diffstat (limited to 'libpod')
-rw-r--r--libpod/define/version.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/define/version.go b/libpod/define/version.go
index 67dc730ac..5249b5d84 100644
--- a/libpod/define/version.go
+++ b/libpod/define/version.go
@@ -5,7 +5,7 @@ import (
"strconv"
"time"
- podmanVersion "github.com/containers/podman/v3/version"
+ "github.com/containers/podman/v3/version"
)
// Overwritten at build time
@@ -42,8 +42,8 @@ func GetVersion() (Version, error) {
}
}
return Version{
- APIVersion: podmanVersion.APIVersion.String(),
- Version: podmanVersion.Version.String(),
+ APIVersion: version.APIVersion[version.Libpod][version.CurrentAPI].String(),
+ Version: version.Version.String(),
GoVersion: runtime.Version(),
GitCommit: gitCommit,
BuiltTime: time.Unix(buildTime, 0).Format(time.ANSIC),