Documentation
¶
Overview ¶
Package update checks GitHub Releases for a newer orchard and can replace the running binary in place. The version check is a single unauthenticated GET, cached for a day, opt out with ORCHARD_NO_UPDATE_CHECK.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyLatest = errors.New("already on the latest version")
ErrAlreadyLatest is returned by Apply when the running version is current.
Functions ¶
func Apply ¶
Apply downloads the latest release for this OS/arch, verifies its checksum, and replaces the running binary. It refuses (with guidance) for go-install and Homebrew builds, which have their own update path.
func Check ¶
Check returns the latest tag and whether it is newer than current, using a 24h on-disk cache. Honors ORCHARD_NO_UPDATE_CHECK. Network errors are soft.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.