Skip to content
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

Merged
merged 3 commits into from
Aug 3, 2018
Merged

Update check #866

merged 3 commits into from
Aug 3, 2018

Conversation

r2d4
Copy link
Contributor

@r2d4 r2d4 commented Aug 2, 2018

  • uploads a VERSION file to latest bucket
  • non blocking check for updates on every command, i.e. command will not wait for version check to happen before exiting
  • if theres an update, it prints out a message at the very end of output
  • won't check on dirty trees - the way that we inject the version in the makefile makes it so that if you don't explicitly pull tags you'll be left with an "old" version.

merge this after this release

@r2d4 r2d4 requested review from balopat and dgageot as code owners August 2, 2018 21:02
@r2d4
Copy link
Contributor Author

r2d4 commented Aug 2, 2018

Fixes #148

Copy link
Contributor

@balopat balopat left a 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.

return errors.Wrap(err, "getting latest version")
}
if latest.GT(current) {
ch <- fmt.Sprintf("There is a new version (%s) of skaffold available.", latest)
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea, done

@r2d4
Copy link
Contributor Author

r2d4 commented Aug 2, 2018

We should also probably tell users how to disable this by setting SKAFFOLD_UPDATE_CHECK=false

@balopat
Copy link
Contributor

balopat commented Aug 2, 2018

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"
What do you think?

@r2d4 r2d4 merged commit 789f604 into GoogleContainerTools:master Aug 3, 2018
@r2d4 r2d4 deleted the update-check branch August 3, 2018 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants