version

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package version reports which billet this is.

TWO SOURCES, IN ORDER, and neither is enough on its own.

GoReleaser stamps the tag into the vars below with -ldflags. Go 1.24+ also records the VCS tag in the binary by itself, which covers everyone who built with a plain `go build` or installed with `go install module@v0.1.0`. Relying only on the second would be one build flag away from silently reporting "(devel)" in a release artifact — GoReleaser passes -trimpath and its own flags, and -buildvcs=false or a build from a tarball with no .git produces exactly that.

It matters more than a version string usually does: billet sends this to GitHub as part of its client system info on every poll, so a deployment showing up in their telemetry is identifiable as billet rather than as nothing in particular.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dirty

func Dirty() bool

Dirty reports whether the tree had uncommitted changes at build time.

func Revision

func Revision() string

Revision is the commit this binary was built from, or "" if nothing recorded one.

func String

func String() string

String is the one-line description a bug report will quote.

func Version

func Version() string

Version is the release this binary was built from.

Types

This section is empty.

Jump to

Keyboard shortcuts

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