buildinfo

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: BSD-2-Clause Imports: 9 Imported by: 5

Documentation

Overview

Package buildinfo contains build information.

Some of the exported fields may be set during compilation by passing -ldflags "-X src.elv.sh/pkg/buildinfo.Var=value" to "go build".

Index

Constants

View Source
const VersionBase = "0.20.1"

VersionBase identifies the version of Elvish. On the development branches, it identifies the next release.

Variables

View Source
var BuildVariant string

BuildVariant may be set during compilation to identify a particular build variant, such as a build by a specific distribution, with modified dependencies, or with a non-standard toolchain.

If non-empty, it is appended to the version string, along with a "+" prefix.

View Source
var VCSOverride string

VCSOverride may be set during compilation to "time-commit" (e.g. "20220320172241-5dc8c02a32cf") for identifying the version of development builds.

It is only needed if the automatic population of version information implemented in devVersion fails.

This variable is ignored on release branches.

View Source
var Value = Type{

	Version:   addVariant(VersionBase, BuildVariant),
	GoVersion: runtime.Version(),
}

Value contains all the build information.

Functions

This section is empty.

Types

type Program

type Program struct {
	// contains filtered or unexported fields
}

Program is the buildinfo subprogram.

func (*Program) RegisterFlags added in v0.18.0

func (p *Program) RegisterFlags(fs *prog.FlagSet)

func (*Program) Run added in v0.18.0

func (p *Program) Run(fds [3]*os.File, _ []string) error

type Type

type Type struct {
	Version   string `json:"version"`
	GoVersion string `json:"goversion"`
}

Type contains all the build information fields.

func (Type) IsStructMap

func (Type) IsStructMap()

Jump to

Keyboard shortcuts

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