versiongate

package
v8.95.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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

func Check(noCache bool) error

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

func NewUpdater(noCache bool, warnings io.Writer) (*updater.Updater, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL