We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
commit_hash
1 parent da3b414 commit d3cbe26Copy full SHA for d3cbe26
version.go
@@ -64,10 +64,14 @@ func Version() string {
64
65
// RichVersion returns the application version as a properly formed string
66
// per the semantic versioning 2.0.0 spec (http://semver.org/), followed by the
67
-// most recent git tag the build was built on.
+// most recent git tag and commit hash the build was built on.
68
func RichVersion() string {
69
- // Append the most recent git tag of the current build to version.
70
- return fmt.Sprintf("%s commit=%s", semanticVersion(), Commit)
+ // Append the most recent git tag and commit hash of the current build
+ // to version.
71
+ return fmt.Sprintf(
72
+ "%s commit=%s commit_hash=%s", semanticVersion(), Commit,
73
+ CommitHash,
74
+ )
75
}
76
77
// UserAgent returns the full user agent string that identifies the software
0 commit comments