Documentation
¶
Overview ¶
Package updater provides a lightweight, cached version check against GitHub Releases. It is designed to be non-blocking: fire it in a goroutine at startup and only print a notice when the command finishes, if a newer version was found.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChecksumURL ¶
ChecksumURL returns the checksums.txt URL for a given release tag.
func DownloadURL ¶
DownloadURL returns the tarball URL for a given release tag on this platform.
Types ¶
type CheckResult ¶
CheckResult holds the outcome of a version comparison.
func Check ¶
func Check(current string) (*CheckResult, error)
Check compares the running version against the latest GitHub Release. It caches the result for 24h to avoid rate-limiting. Safe to call concurrently.
func CheckForUpgrade ¶
func CheckForUpgrade(current string) (*CheckResult, error)
CheckForUpgrade always fetches the latest release from GitHub, bypassing both the 24h cache and the dev-build guard. Used by 'devx upgrade' so that the command always has fresh data and works during development.