Skip to content

Commit 6075e9b

Browse files
fix(cli): skip provider upgrade check if we do not find a pro instance (loft-sh#1248)
1 parent 8d556d3 commit 6075e9b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/up.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,11 @@ func performGpgForwarding(
10791079
// Potentially auto-upgrade other providers in the future.
10801080
func checkProviderUpdate(devPodConfig *config.Config, proInstance *provider2.ProInstance, log log.Logger) error {
10811081
if version.GetVersion() == version.DevVersion {
1082-
log.Debugf("Skipping provider check during development")
1082+
log.Debugf("Skipping provider upgrade check during development")
1083+
return nil
1084+
}
1085+
if proInstance == nil {
1086+
log.Debugf("No pro instance available, skipping provider upgrade check")
10831087
return nil
10841088
}
10851089

0 commit comments

Comments
 (0)