Help us shape the future of Go! Take the 2026 Go Developer Survey

release

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package release is how a binary becomes another release's. Every file comes from dl.mainplane.ai and counts only when its hash is in a SHA256SUMS the release key signed. A caller names a version, never a place or bytes, so whoever picks the version, a harness for its workers or a person for the harness, cannot make root run a binary we did not release. The private half of the key is the RELEASE_SIGNING_KEY secret that release.yml signs SHA256SUMS with. A download gets minutes: a binary is megabytes on any link.

Index

Constants

View Source
const (
	DL = "https://dl.mainplane.ai/" // every release's files, install scripts included, under its version

)

Variables

This section is empty.

Functions

func Aside added in v0.5.5

func Aside(path string) (string, error)

Aside renames path to a name of its own beside it and returns that name, so a new binary can take path. Windows renames a running binary but will not replace or delete it, and a TUI may run any old binary for days, so each gets a new name and the asides from before go only once nothing runs them.

func Asides added in v0.5.5

func Asides(path string) []string

Asides are the old binaries Aside left beside path, and the .old that releases before it left. A directory that cannot be read has none: Aside's rename and uninstall's removals then fail on it by name.

func Get

func Get(v, file string) ([]byte, error)

Get is file of release v, checked against v's signed SHA256SUMS.

func Install

func Install(path, cmd, v string) error

Install puts release v's build of cmd for this machine at path. The new binary must say it is v. The old one moves aside: see Aside.

func InstallLines added in v0.5.5

func InstallLines(args string) (unix, windows string)

InstallLines run the latest install script with args: on Linux and macOS, then on Windows.

func Latest

func Latest() (string, error)

Latest is the newest stable release, which release.yml writes on stable tags only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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