Adding goos and goarch from runtime

This commit is contained in:
Todd Brown
2019-02-12 12:35:09 -06:00
committed by Todd Brown
parent 02d753027a
commit 7d3735b19e

View File

@@ -19,14 +19,15 @@ package misc
import (
"fmt"
"io"
"runtime"
"github.com/spf13/cobra"
)
var (
kustomizeVersion = "unknown"
goos = "unknown"
goarch = "unknown"
goos = runtime.GOOS
goarch = runtime.GOARCH
gitCommit = "$Format:%H$" // sha1 from git, output of $(git rev-parse HEAD)
buildDate = "1970-01-01T00:00:00Z" // build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ')