Use the original tag not the semverified

For examle trailing 0 are added on parse and used for validation but may be missing from the tag.
pull/82/head
Michael Mccallum 2017-08-06 12:14:58 +12:00
parent 412a1772a6
commit 5ce7c99a2e
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ func NewAvailable(current string, tags []string) (newVersion string, newAvailabl
sort.Sort(sort.Reverse(semver.Collection(vs))) sort.Sort(sort.Reverse(semver.Collection(vs)))
if currentVersion.LessThan(vs[0]) { if currentVersion.LessThan(vs[0]) {
return vs[0].String(), true, nil return vs[0].Original(), true, nil
} }
return "", false, nil return "", false, nil
} }