Skip to content

Commit 486ecf1

Browse files
fix handling of failed version lookup
1 parent 25a19ed commit 486ecf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/upgrade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var upgradeCmd = &cobra.Command{
1616
Short: "Install the latest version of the CLI",
1717
Run: func(cmd *cobra.Command, args []string) {
1818
info := version.FromContext(cmd.Context())
19-
if !info.IsOutdated {
19+
if !info.IsOutdated && info.FailedToFetch == nil {
2020
fmt.Println("Boot.dev CLI is already up to date.")
2121
return
2222
}

0 commit comments

Comments
 (0)