-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update check #866
Update check #866
Conversation
Fixes #148 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just one nit, otherwise looks good to me.
cmd/skaffold/app/cmd/cmd.go
Outdated
return errors.Wrap(err, "getting latest version") | ||
} | ||
if latest.GT(current) { | ||
ch <- fmt.Sprintf("There is a new version (%s) of skaffold available.", latest) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: provide a download link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea, done
We should also probably tell users how to disable this by setting |
agreed - probably in the doc, but also could put a debugf message here every time the update check runs would say something like: "running update check...you can disable this by setting the SKAFFOLD_UPDATE_CHECK env var false" |
merge this after this release