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
parent
412a1772a6
commit
5ce7c99a2e
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue