mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Homebrew formula updates lag GitHub Releases by hours/days, causing Homebrew users to see "update available" when `brew upgrade` says already up-to-date. Now detect install method from executable path and query `brew info --json=v2` for Homebrew installs instead of the GitHub Release API. - Add InstallMethod type with DetectInstallMethod() and FetchBrewLatestVersion() in internal/version/homebrew.go - Check() accepts InstallMethod to branch fetch strategy - UpdateNotification() accepts upgradeCmd (shows correct command) - UpgradeCommand() method on InstallMethod centralizes the mapping - doctor.go reuses versioncheck.Check() (fixes semver string comparison bug in old fetchUpdateMessage) - Remove duplicated isHomebrewInstall() from upgrade.go - Skip post-command version check for doctor (has its own)