clientupdate: return NOTREACHED for macsys

The work is done in Swift; this is now a documentation placeholder.

Updates #6995

Signed-off-by: Chris Palmer <[email protected]>
This commit is contained in:
Chris Palmer committed 2023-08-15 13:08:50 -07:00
1 parent a690347e62
commit e230e617f8
1 file changed
+1 -4
+1 -4
View File
@@ -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 {