Skip to content

Commit

Permalink
update verbose wording
Browse files Browse the repository at this point in the history
  • Loading branch information
shihyuho committed Oct 15, 2019
1 parent 91b6ed4 commit 3ffc814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/environment/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ func checkOnline(log *logrus.Logger, currentVersion string) error {
log.Println("Checking for latest slctl version...")
client := github.NewClient(nil)
ctx := context.Background()
log.Debugf("fetching latest release of github.com/%s/%s", owner, repo)
log.Debugf("fetching the latest published release from github.com/%s/%s", owner, repo)
rr, _, err := client.Repositories.GetLatestRelease(ctx, owner, repo)
if err != nil {
return err
}
latest := rr.GetTagName()
log.Debugf("found latest tag: %s", latest)
log.Debugf("found latest version: %s+%s", latest, rr.GetTargetCommitish())
if updateAvailable, err := ver.Revision(latest).IsGreaterThan(currentVersion); err != nil {
return err
} else if updateAvailable {
Expand Down

0 comments on commit 3ffc814

Please sign in to comment.