File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,14 @@ func Version() string {
64
64
65
65
// RichVersion returns the application version as a properly formed string
66
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.
67
+ // most recent git tag and commit hash the build was built on.
68
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 )
69
+ // Append the most recent git tag and commit hash of the current build
70
+ // to version.
71
+ return fmt .Sprintf (
72
+ "%s commit=%s commit_hash=%s" , semanticVersion (), Commit ,
73
+ CommitHash ,
74
+ )
71
75
}
72
76
73
77
// UserAgent returns the full user agent string that identifies the software
You can’t perform that action at this time.
0 commit comments