Files
orchestra/internal/buildinfo/buildinfo.go
T
2026-07-30 14:34:29 +04:00

20 lines
563 B
Go

// Package buildinfo exposes the provenance injected into Orchestra binaries.
// Build systems should set Revision, Time, and Dirty with -ldflags. Keeping
// the defaults explicit makes development binaries honest rather than
// pretending to be a deployable revision.
package buildinfo
var (
Revision = "devel"
Time = "unknown"
Dirty = "unknown"
)
type Info struct {
Revision string `json:"revision"`
Time string `json:"time"`
Dirty string `json:"dirty"`
}
func Current() Info { return Info{Revision: Revision, Time: Time, Dirty: Dirty} }