diff --git a/version.go b/version.go index 15520501..1e150293 100644 --- a/version.go +++ b/version.go @@ -301,7 +301,11 @@ type semVersion struct { } func (v semVersion) String() string { - return v.sv.Original() + str := v.sv.Original() + if str == "" { + str = v.sv.String() + } + return str } func (r semVersion) Type() string {