Skip to content

Commit

Permalink
fix: show outdated provider warning only for prod nitric providers (#825
Browse files Browse the repository at this point in the history
)
  • Loading branch information
davemooreuws authored Dec 5, 2024
1 parent f9fb716 commit 2baf292
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ func PrintOutdatedProviderWarning(providerName string) {
return
}

// don't generate warning for non nitric provider versions
if !strings.HasPrefix(providerName, "nitric/") {
return
}

// don't generate warning for 0.0.1 versions (local builds)
if currentVersion == "0.0.1" {
return
}

updateAvailable := isOutdated(currentVersion, latestVersion)

if updateAvailable {
Expand Down

0 comments on commit 2baf292

Please sign in to comment.