Skip to content

Commit

Permalink
clientupdate: return NOTREACHED for macsys
Browse files Browse the repository at this point in the history
The work is done in Swift; this is now a documentation placeholder.

Updates #6995

Signed-off-by: Chris Palmer <cpalmer@tailscale.com>
  • Loading branch information
Chris Palmer committed Aug 15, 2023
1 parent a690347 commit e230e61
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions clientupdate/clientupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,7 @@ func parseAlpinePackageVersion(out []byte) (string, error) {
}

func (up *updater) updateMacSys() error {
// This is actually NOTREACHED, because code in Swift intercepted the
// `update` command before ever calling into this point. It invokes the
// Sparkle update GUI.
return nil
return errors.New("NOTREACHED: On MacSys builds, `tailscale update` is handled in Swift to launch the GUI updater")
}

func (up *updater) updateMacAppStore() error {
Expand Down

0 comments on commit e230e61

Please sign in to comment.