Documentation
¶
Overview ¶
Package versiongate is the check that precedes every devctl command but the version commands: an outdated devctl refuses to run until it is updated, or until DEVCTL_UNSAFE_FORCE_VERSION names the running version.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
Check returns nil when this build is the latest release or DEVCTL_UNSAFE_FORCE_VERSION names it, and otherwise the error naming the release and the two ways on. The latest release is read from the version cache unless noCache, and from GitHub when the cache is older than an hour.
func NewUpdater ¶ added in v8.94.0
NewUpdater is the updater of this devctl: its releases on GitHub, read with the token of the App login or the environment (anonymously without one, the keychain opened only when GitHub is asked), and the version cache in the config directory unless noCache. The token's override warning goes to warnings.
Types ¶
This section is empty.