project

package
v5.62.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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.

Jump to

Keyboard shortcuts

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