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 #679pull/686/head
parent
31c7fa934b
commit
bbe7c31470
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue