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

release

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: MIT Imports: 14 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 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 is kept beside it as .old, since Windows renames a running binary but will not replace it.

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