Skip to content

Commit 669a752

Browse files
authored
Update default stack version to 8.10.1 (#1461)
1 parent 4d98368 commit 669a752

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test-stack-command-86:
6666
./scripts/test-stack-command.sh 8.6.2
6767

6868
test-stack-command-8x:
69-
./scripts/test-stack-command.sh 8.10.0-SNAPSHOT
69+
./scripts/test-stack-command.sh 8.11.0-SNAPSHOT
7070

7171
test-stack-command: test-stack-command-default test-stack-command-7x test-stack-command-800 test-stack-command-8x
7272

internal/install/stack_version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ package install
66

77
const (
88
// DefaultStackVersion is the default version of the stack
9-
DefaultStackVersion = "8.9.1"
9+
DefaultStackVersion = "8.10.1"
1010
)

internal/version/check_update.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ type versionLatest struct {
3737
Timestamp time.Time `json:"timestamp"`
3838
}
3939

40+
func (v versionLatest) String() string {
41+
return fmt.Sprintf("%s. Download from: %s (Timestamp %s)", v.TagName, v.HtmlURL, v.Timestamp)
42+
}
43+
4044
// CheckUpdate function checks using Github Release API if newer version is available.
4145
func CheckUpdate() {
4246
if Tag == "" {
@@ -63,7 +67,7 @@ func CheckUpdate() {
6367
var release *versionLatest
6468
switch {
6569
case !expired:
66-
logger.Debugf("latest version (cached): %s", latestVersion)
70+
logger.Debugf("latest version (cached): %s", latestVersion.String())
6771
release = latestVersion
6872
default:
6973
logger.Debugf("checking latest release in Github")

0 commit comments

Comments
 (0)