project

package
v5.23.4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 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 exposes the build identifiers populated by the architect-orb `go-build` job at link time (gitSHA, buildTimestamp). It has no dependencies so it can be safely imported by `main` and any CLI command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTimestamp

func BuildTimestamp() string

BuildTimestamp returns the UTC build time in RFC 3339 format, or "unknown" when no ldflag was injected.

func GitSHA

func GitSHA() string

GitSHA returns the commit SHA the binary was built from: the injected `gitSHA` ldflag, else the revision the Go toolchain stamped into the build info, else "dev".

func Version

func Version() string

Version returns the best human-readable build identifier available, in order: the injected `version` ldflag, the release tag the Go toolchain stamped into the build info, the commit SHA, and finally the placeholder "dev".

The build info is only trusted when it names a tag. A build of an untagged commit gets a pseudo-version derived from the last tag before it, v5.23.3-0.<commit time>-<commit> (and while the module path had no /v5 suffix the toolchain only considered v0 and v1 tags, so even a release commit got v1.12.1-0.<commit time>-<commit>). Such a pseudo-version names no release and is ignored; releases carry their tag in the `version` ldflag, and since the module is github.com/giantswarm/muster/v5 a build of the tagged commit carries it in the build info as well.

Types

This section is empty.

Jump to

Keyboard shortcuts

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