Documentation
¶
Overview ¶
Package version holds build version metadata for the agent binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = "0.0.0-dev"
Version is the semantic version. Override at build time with:
go build -ldflags "-X github.com/ionalpha/flynn/internal/version.Version=v0.1.0" ./cmd/flynn
Functions ¶
func IsDev ¶
func IsDev() bool
IsDev reports whether this is an unstamped development build (no release version linked in). A dev build keeps its durable state apart from a release build's, so an in-progress schema change on a branch never touches a real installation. A build installed with `go install ...@<version>` is a real release, not a dev build.
func Revision ¶ added in v0.1.3
func Revision() string
Revision returns the short VCS revision the binary was built from, or "" when it was not built from a checkout the toolchain could stamp (a released archive, a `go install`, or a build with VCS stamping disabled). A diagnostic artifact records it so a captured profile can be read against the source that produced it.
Types ¶
This section is empty.