mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 16:39:01 +00:00
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.
13 lines
350 B
Go
13 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
|
|
)
|