fleet/orbit/pkg/build/build.go
Zach Wasserman e5a80fa3f5
Add user agent to Orbit HTTP client (#5429)
Allows identification of which Orbit versions are in use from the update
server.

Refactored the build information into a separate `package build` to
support importing it from multiple places.
2022-05-02 11:03:49 -07:00

14 lines
350 B
Go

// package build provides build metadata through variables set at build time
// (with -ldflags="-X ...")
package build
var (
// Version is the commit tag version number for release builds, or a
// generated version for untagged builds.
Version string
// Commit is the commit SHA.
Commit string
// Date is the date of the build.
Date string
)