release

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package release resolves the newest published Miabi platform version.

The CLI releases on its own cadence — a CLI cut months ago still has to install today's Miabi — so the platform version cannot be baked into the binary. It is looked up when needed, and an operator can always state it outright with --version or --image instead.

Index

Constants

View Source
const (

	// APIEnv points the lookup at a mirror — an internal proxy on a host with no route to GitHub.
	// It must serve GitHub's releases JSON shape.
	APIEnv = "MIABI_RELEASE_API"
)

Variables

This section is empty.

Functions

func Latest

func Latest(ctx context.Context, userAgent string) (string, error)

Latest returns the newest published platform version WITHOUT a leading "v" — "1.8.0", matching the Docker tag rather than the Git tag. Drafts and prereleases are skipped: an unattended `miabi upgrade` must not walk onto a release candidate.

userAgent identifies the caller honestly. The request says nothing else about the install: no id, no host, no license.

func Normalize

func Normalize(tag string) string

Normalize turns a Git tag into a Docker tag: releases are cut as v1.8.0 and published as 1.8.0. The "v" is stripped only when a digit follows, so a tag like "vnext" is left alone.

Types

This section is empty.

Jump to

Keyboard shortcuts

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