version

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package version provides the version that the binary was built at.

Index

Constants

This section is empty.

Variables

View Source
var GitCommit = ""

GitCommit, if non-empty, is the git commit of the github.com/tierrun/tier repository at which Tier was built. Its format is the one returned by `git describe --always --exclude "*" --dirty --abbrev=200`.

View Source
var GitDirty bool

GitDirty is whether Go stamped the binary has having dirty version control changes in the working directory (debug.ReadBuildInfo setting "vcs.modified" was true).

View Source
var Long = ""

Long is a full version number for this build, of the form "x.y.z-commithash" for builds stamped in the usual way (see build_dist.sh in the root) or, for binaries built by hand with the go tool, it's of the form "1.23.0-dev20220316-t29837428937{,-dirty}" where "1.23.0" comes from ../VERSION.txt and the part after dev is YYYYMMDD of the commit time, and the part after -t is the commit hash. The dirty suffix is whether there are uncommitted changes.

View Source
var Short = ""

Short is a short version number for this build, of the form "x.y.z" for builds stamped in the usual way (see build_dist.sh in the root) or, for binaries built by hand with the go tool, it's like Long's dev form, but ending at the date part, of the form "1.23.0-dev20220316".

Functions

func String

func String() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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