From 910f008fb966017c9dd1b562d417632e7e7e1951 Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Molins Date: Wed, 20 Sep 2023 12:40:39 +0200 Subject: [PATCH 1/2] Update default stack version to 8.10.1 --- Makefile | 2 +- internal/install/stack_version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7f7fa31cf1..ebda29d07c 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ test-stack-command-86: ./scripts/test-stack-command.sh 8.6.2 test-stack-command-8x: - ./scripts/test-stack-command.sh 8.10.0-SNAPSHOT + ./scripts/test-stack-command.sh 8.11.0-SNAPSHOT test-stack-command: test-stack-command-default test-stack-command-7x test-stack-command-800 test-stack-command-8x diff --git a/internal/install/stack_version.go b/internal/install/stack_version.go index 213b6b3d74..94853de0d4 100644 --- a/internal/install/stack_version.go +++ b/internal/install/stack_version.go @@ -6,5 +6,5 @@ package install const ( // DefaultStackVersion is the default version of the stack - DefaultStackVersion = "8.9.1" + DefaultStackVersion = "8.10.1" ) From 596838fd5ad04ef994129f36c83c5394954487a2 Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Molins Date: Wed, 20 Sep 2023 12:40:57 +0200 Subject: [PATCH 2/2] Improve debug message about version cached --- internal/version/check_update.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/version/check_update.go b/internal/version/check_update.go index 34a0d42f4c..60bf70c962 100644 --- a/internal/version/check_update.go +++ b/internal/version/check_update.go @@ -37,6 +37,10 @@ type versionLatest struct { Timestamp time.Time `json:"timestamp"` } +func (v versionLatest) String() string { + return fmt.Sprintf("%s. Download from: %s (Timestamp %s)", v.TagName, v.HtmlURL, v.Timestamp) +} + // CheckUpdate function checks using Github Release API if newer version is available. func CheckUpdate() { if Tag == "" { @@ -63,7 +67,7 @@ func CheckUpdate() { var release *versionLatest switch { case !expired: - logger.Debugf("latest version (cached): %s", latestVersion) + logger.Debugf("latest version (cached): %s", latestVersion.String()) release = latestVersion default: logger.Debugf("checking latest release in Github")