From 87d8222bc8f78217a401e4b31159434ab5141811 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Mon, 11 Oct 2021 20:58:42 +1030 Subject: [PATCH] Argh - I got the version check backwards :-( --- version/version.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version/version.go b/version/version.go index 359fc01..ece417b 100644 --- a/version/version.go +++ b/version/version.go @@ -7,7 +7,7 @@ import ( "golang.org/x/mod/semver" ) -const CurrentVersion string = "v0.11.0" +const CurrentVersion string = "v0.12.0" func NewVersionAvailable(v string) bool { if !semver.IsValid(CurrentVersion) { @@ -22,7 +22,7 @@ func NewVersionAvailable(v string) bool { if comp == 0 { return false } - if comp == -1 { + if comp == 1 { return true } return false // they are using a newer one than exists?