buildinfo

package
v1.40.0 Latest Latest
Warning

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

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

Documentation

Overview

Package buildinfo centralises build metadata for the lazyworktree binary. The linker injects values into cmd/lazyworktree/main.go; main() calls Set() to forward them here so every other package can query them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiltBy

func BuiltBy() string

BuiltBy returns the build agent string.

func Commit

func Commit() string

Commit returns the build commit hash.

func Date

func Date() string

Date returns the build date string.

func Enrich

func Enrich()

Enrich fills missing metadata from runtime/debug.ReadBuildInfo(). It overwrites commit when it equals "none" and builtBy when it equals "unknown", using VCS revision and Go version respectively.

func Set

func Set(v, c, d, b string)

Set stores the build metadata received from linker-injected variables.

func Version

func Version() string

Version returns the build version string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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