-
Notifications
You must be signed in to change notification settings - Fork 156
feat(core): print a warning when new release is available #665
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
Conversation
dfef1f0 to
9be9904
Compare
internal/core/bootstrap.go
Outdated
| // Check CLI new version | ||
| if interactive.IsInteractive { | ||
| defer func() { | ||
| config.BuildInfo.checkVersion() |
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.
The warning should be print before result not after.
b0639bd to
4c03994
Compare
loicbourgois
left a comment
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.
LGTM
4c03994 to
2b8ede4
Compare
jerome-quere
left a comment
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.
LGTM
| logger.Debugf("skipping telemetry report") | ||
| return | ||
| } | ||
| matomoErr := matomo.SendCommandTelemetry(&matomo.SendCommandTelemetryRequest{ |
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: add a newline
| } | ||
|
|
||
| const ( | ||
| scwDisableCheckVersionEnv = "SCW_DISABLE_CHECK_VERSION" |
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.
We need to document it somewhere
No description provided.