From 7a41ff01275f270061207fb811000fca884a9614 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Tue, 23 May 2023 10:46:54 +0300 Subject: [PATCH] added version check todo --- plugins/ghupdate/ghupdate.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/ghupdate/ghupdate.go b/plugins/ghupdate/ghupdate.go index bdd46348..0420fb60 100644 --- a/plugins/ghupdate/ghupdate.go +++ b/plugins/ghupdate/ghupdate.go @@ -138,6 +138,8 @@ func (p *plugin) update(withBackup bool) error { return err } + // @todo consider using an external library OR update to check + // to handle cases like v0.16.2 >= v0.16.10 if strings.TrimPrefix(p.currentVersion, "v") >= strings.TrimPrefix(latest.Tag, "v") { color.Green("You already have the latest PocketBase %s.", p.currentVersion) return nil