Skip to content
Merged
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
7 changes: 6 additions & 1 deletion internal/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,12 @@ func checkVersion(logger output.Logger) {
body, _ := ioutil.ReadAll(resp.Body)
latestVersion := strings.TrimSpace(string(body))

if latestVersion != build.Semver() {
currentVersion := build.Semver()
if currentVersion == "undefined" {
return // avoid warning in local development
}

if currentVersion != latestVersion {
logger.Info(fmt.Sprintf(
"\n⚠️ Version warning: a new version of Flow CLI is available (%s).\n"+
"Read the installation guide for upgrade instructions: https://docs.onflow.org/flow-cli/install",
Expand Down