Documentation
¶
Overview ¶
Package project carries the build identity of the muster binary: its version, git commit and build time, and the names that identify the project in messages. The generated Makefile (devctl) and the architect CI stamp the identifiers through `-ldflags -X`; a plain `go build` or `go install` has no ldflags and falls back to the module build info, which Go 1.24+ derives from the VCS tag of the checkout. The package has no dependencies, so `main`, any CLI command and the aggregator can import it.
Index ¶
Constants ¶
const ( Name = "muster" Module = "github.com/giantswarm/muster/v5" Source = "https://github.com/giantswarm/muster" )
Name, Module and Source identify the project in messages and reports: the binary's name, the Go module (`go install Module@latest` builds the newest release) and the repository.
Variables ¶
This section is empty.
Functions ¶
func BuildTimestamp ¶
func BuildTimestamp() string
BuildTimestamp returns the build time in RFC 3339: the linker-stamped one, else the commit time Go recorded from version control, else "".
func GitSHA ¶
func GitSHA() string
GitSHA returns the commit the binary was built from: the linker-stamped one, else the revision Go recorded from version control, else "".
func ShortSHA ¶ added in v5.24.0
func ShortSHA() string
ShortSHA is GitSHA cut to the seven characters git shows, or "" when unknown.
func Version ¶
func Version() string
Version returns the muster version in the form the tags use ("v5.23.5"): the linker-stamped one when the binary came out of make or the release pipeline; else the module version Go recorded, which is the tag for `go install …@v5.23.5` and for a `go build` at the tag, a pseudo-version between tags ("v5.23.6-0.20260915195350-977012d023ba": after v5.23.5, before v5.23.6) and carries "+dirty" over local edits; else "dev".
func VersionLine ¶ added in v5.24.0
func VersionLine() string
VersionLine is what `muster --version` and `muster version` print after the name: "v5.23.5 (commit 361cdef, built 2026-09-15T19:38:51Z)", with the details the binary knows.
Types ¶
This section is empty.