diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-29 09:37:47 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-29 09:37:47 +1000 |
commit | cff1dee6dcb303e789b804bbe270a0032f0b76a7 (patch) | |
tree | 4454e0dbc7cc71f263c757c8eca7251e25e98c3d /pkg/updates | |
parent | 2181a91fea7e884f8e511e411e137c41d0b5316a (diff) |
more lenient version comparison
Diffstat (limited to 'pkg/updates')
-rw-r--r-- | pkg/updates/updates.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/updates/updates.go b/pkg/updates/updates.go index 20f05d87e..ad5dd57b6 100644 --- a/pkg/updates/updates.go +++ b/pkg/updates/updates.go @@ -88,6 +88,8 @@ func (u *Updater) majorVersionDiffers(oldVersion, newVersion string) bool { if oldVersion == "unversioned" { return false } + oldVersion = strings.TrimPrefix(oldVersion, "v") + newVersion = strings.TrimPrefix(newVersion, "v") return strings.Split(oldVersion, ".")[0] != strings.Split(newVersion, ".")[0] } |