Merge PR #2318: Simplify version handling, rely on git describe

This commit is contained in:
Alessio Treglia
2018-09-20 00:03:04 +08:00
committed by Christopher Goes
parent b74a6a9066
commit 10b916eb28
6 changed files with 16 additions and 22 deletions
+2 -7
View File
@@ -17,15 +17,10 @@ var (
// return version of CLI/node and commit hash
func GetVersion() string {
v := Version
if GitCommit != "" {
v = v + "-" + GitCommit
}
return v
return Version
}
// CMD
func printVersion(cmd *cobra.Command, args []string) {
v := GetVersion()
fmt.Println(v)
fmt.Println(GetVersion())
}