From 97fb443344bc6ba7a5186b208aba3b3c7be9291c Mon Sep 17 00:00:00 2001 From: Itxaka Date: Thu, 20 Apr 2023 09:57:58 +0200 Subject: [PATCH] bug: Fix version list (#1323) * :bug: Fix version list First version in the list is the latest one. Alos moves the check for same version above the current place, so it can check before asking if you want to update to the same version Signed-off-by: Itxaka * :seedling: Rework versioning for upgrade Use the semver lib to parse the versions into a proper collection where it can be parsed and versions compared and sorted properly Signed-off-by: Itxaka * :robot: lint Signed-off-by: Itxaka --------- Signed-off-by: Itxaka --- go.mod | 1 + 1 file changed, 1 insertion(+) diff --git a/go.mod b/go.mod index cbe8321..46e039f 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module github.com/kairos-io/kairos/v2 go 1.20 require ( + github.com/Masterminds/semver/v3 v3.1.1 github.com/avast/retry-go v3.0.0+incompatible github.com/erikgeiser/promptkit v0.8.0 github.com/google/go-github/v40 v40.0.0