release

package
v0.1.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package release describes the running build independently of data formats.

@facet: delivery/distribution/build-identity @facet-role: primary

Index

Constants

View Source
const (
	OriginFacetCache = "facet-cache"
	OriginNPM        = "npm"
	OriginUnmanaged  = "unmanaged"
)

Install origins of the running executable. They are facts about where this file was found, not about how it was built: the same build can be installed by the dispatcher, shipped in an npm package or copied onto PATH.

View Source
const InstallManifest = "install.json"

InstallManifest is the file the dispatcher bin/facet writes beside each Core binary it installs under $BASE/dist/core/<distribution>/<platform>/<version>/.

Variables

View Source
var Distribution, SourceCommit, Dirty, BuildTime, BuildChannel string

These fields may be set through Go linker flags by build tooling. Empty metadata remains unknown; an arbitrary legacy -X main.version never establishes provenance.

Functions

This section is empty.

Types

type Compatibility

type Compatibility struct {
	TargetVersion            string   `json:"target_version"`
	SpecificationVersion     string   `json:"specification_version"`
	CompatibleSpecifications []string `json:"compatible_specifications"`
	RecordSchemaVersions     []string `json:"record_schema_versions"`
	ProductProtocol          int      `json:"product_protocol"`
}

func Supported

func Supported() Compatibility

type Identity

type Identity struct {
	Product      string `json:"product"`
	Version      string `json:"version"`
	Distribution string `json:"distribution"`
	Channel      string `json:"channel"`
	SourceCommit string `json:"source_commit,omitempty"`
	Dirty        *bool  `json:"dirty"`
	// BuildTime is the stamped build time (release builds stamp the commit
	// time), or Go's vcs.time, normalised to RFC3339 UTC. Unknown stays absent.
	BuildTime     string        `json:"build_time,omitempty"`
	Compatibility Compatibility `json:"compatibility"`
	// AtlasVersion and UIVersion are set only by a distribution that bundles
	// Atlas, a separate product, with this CLI. A Core build leaves both empty,
	// and an empty value is omitted rather than reported as a version.
	AtlasVersion string `json:"atlas_version,omitempty"`
	UIVersion    string `json:"ui_version,omitempty"`
}

func Current

func Current(version string) Identity

func Resolve

func Resolve(version, distribution, channel, commit, dirty, stamp string) Identity

type Install

type Install struct {
	Origin string `json:"origin"`
	Path   string `json:"path"`
	// Distribution and Version are carried from install.json for facet-cache.
	Distribution string `json:"distribution,omitempty"`
	Version      string `json:"version,omitempty"`
	// Note explains why an origin was not established, e.g. an install.json
	// that exists but cannot be trusted. Absent when nothing needs explaining.
	Note string `json:"note,omitempty"`
}

Install says where the running executable lives and which installer owns it. It is kept apart from Identity on purpose: Identity is fixed at build time, while Install depends on the file the process was started from.

@facet: delivery/distribution/install-origin @facet-role: primary

func ClassifyInstall

func ClassifyInstall(path string) Install

ClassifyInstall classifies an already resolved executable path.

func CurrentInstall

func CurrentInstall() Install

CurrentInstall classifies the executable of this process after resolving symlinks, so a link on PATH reports the install it points to.

Jump to

Keyboard shortcuts

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