Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion internal/install/stack_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ package install

const (
// DefaultStackVersion is the default version of the stack
DefaultStackVersion = "8.9.1"
DefaultStackVersion = "8.10.1"
)
6 changes: 5 additions & 1 deletion internal/version/check_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand All @@ -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")
Expand Down