Fix missing version

Previously, using the version switch (`chronograf --version`) would
yield no version or commit information. This was because those two
package vars were exported, when the build script expects them to be
package private. To keep the build script as consistent as possible
across repos, the solution was to just make those package vars private

Connect #679
pull/686/head
Tim Raymond 2016-12-13 15:09:12 -05:00
parent 31c7fa934b
commit bbe7c31470
1 changed files with 5 additions and 5 deletions

View File

@ -10,15 +10,15 @@ import (
// Build flags
var (
Version = ""
Commit = ""
version = ""
commit = ""
)
func main() {
srv := server.Server{
BuildInfo: server.BuildInfo{
Version: Version,
Commit: Commit,
Version: version,
Commit: commit,
},
}
@ -37,7 +37,7 @@ func main() {
}
if srv.ShowVersion {
log.Printf("Chronograf %s (git: %s)\n", Version, Commit)
log.Printf("Chronograf %s (git: %s)\n", version, commit)
os.Exit(0)
}