Merge pull request #5859 from tariq1890/add_go_v3

add go version to version cmd output of helm
pull/5869/head
Matt Farina 5 years ago committed by GitHub
commit 560ef4483c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1 +1 @@
version.BuildInfo{Version:"v3.0+unreleased", GitCommit:"", GitTreeState:""}
version.BuildInfo{Version:"v3.0+unreleased", GitCommit:"", GitTreeState:"", GoVersion:"go1.12.5"}

@ -17,6 +17,8 @@ limitations under the License.
package version // import "helm.sh/helm/internal/version"
import (
"runtime"
hversion "helm.sh/helm/pkg/version"
)
@ -52,5 +54,6 @@ func Get() hversion.BuildInfo {
Version: GetVersion(),
GitCommit: gitCommit,
GitTreeState: gitTreeState,
GoVersion: runtime.Version(),
}
}

@ -20,8 +20,10 @@ package version // import "helm.sh/helm/pkg/version"
type BuildInfo struct {
// Version is the current semver.
Version string `json:"version,omitempty"`
// GitCommit is the git sha1
// GitCommit is the git sha1.
GitCommit string `json:"git_commit,omitempty"`
// GitTreeState is the state of the git tree
// GitTreeState is the state of the git tree.
GitTreeState string `json:"git_tree_state,omitempty"`
// GoVersion is the version of the Go compiler used.
GoVersion string `json:"go_version,omitempty"`
}

Loading…
Cancel
Save