diff --git a/cli/commands.go b/cli/commands.go index a9ad4115e4..4dbb7ebb18 100644 --- a/cli/commands.go +++ b/cli/commands.go @@ -232,7 +232,7 @@ func Commands(metaPtr *command.Meta) map[string]cli.CommandFactory { if GitDescribe != "" { ver = GitDescribe } - if GitDescribe == "" && rel == "" && VersionPrerelease == "" { + if GitDescribe == "" && rel == "" && VersionPrerelease != "" { rel = "dev" }