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 e30ac3d commit 4edaed4Copy full SHA for 4edaed4
version.go
@@ -48,12 +48,13 @@ func Version() string {
48
}
49
50
// RichVersion returns the application version as a properly formed string
51
-// per the semantic versioning 2.0.0 spec (http://semver.org/), the git tag it
52
-// was built on.
+// per the semantic versioning 2.0.0 spec (http://semver.org/), the git tag and
+// commit hash it was built on.
53
func RichVersion() string {
54
- // Append git tag of current build to version.
+ // Append git tag and commit hash of current build to version.
55
return fmt.Sprintf(
56
- "%s commit=%s", semanticVersion(), Commit,
+ "%s commit=%s commit_hash=%s", semanticVersion(), Commit,
57
+ CommitHash,
58
)
59
60
0 commit comments