mirror of https://github.com/hashicorp/consul
James Phillips
8 years ago
committed by
GitHub
8 changed files with 57 additions and 37 deletions
@ -1,23 +1,21 @@
|
||||
package main |
||||
package version |
||||
|
||||
import ( |
||||
"fmt" |
||||
"strings" |
||||
) |
||||
|
||||
// The git commit that was compiled. This will be filled in by the compiler.
|
||||
var ( |
||||
// The git commit that was compiled. These will be filled in by the
|
||||
// compiler.
|
||||
GitCommit string |
||||
GitDescribe string |
||||
) |
||||
|
||||
// The main version number that is being run at the moment.
|
||||
const Version = "0.7.1" |
||||
|
||||
// A pre-release marker for the version. If this is "" (empty string)
|
||||
// then it means that it is a final release. Otherwise, this is a pre-release
|
||||
// such as "dev" (in development), "beta", "rc1", etc.
|
||||
const VersionPrerelease = "dev" |
||||
// Release versions of the build. These will be filled in by one of the
|
||||
// build tag-specific files.
|
||||
Version = "unknown" |
||||
VersionPrerelease = "unknown" |
||||
) |
||||
|
||||
// GetHumanVersion composes the parts of the version in a way that's suitable
|
||||
// for displaying to humans.
|
@ -0,0 +1,16 @@
|
||||
// +build consul
|
||||
|
||||
package version |
||||
|
||||
// NOTE we rely on other "version_*.go" files to be lexically after
|
||||
// "version_base.go" in order for this to get properly overridden. Be careful
|
||||
// adding new versions and pick a name that will follow "version_base.go".
|
||||
func init() { |
||||
// The main version number that is being run at the moment.
|
||||
Version = "0.7.1" |
||||
|
||||
// A pre-release marker for the version. If this is "" (empty string)
|
||||
// then it means that it is a final release. Otherwise, this is a pre-release
|
||||
// such as "dev" (in development), "beta", "rc1", etc.
|
||||
VersionPrerelease = "dev" |
||||
} |
Loading…
Reference in new issue