diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-06-02 00:10:35 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-06-02 00:10:38 -0700 |
| commit | bc2ec6774d10349143dec326f227a2a809c01731 (patch) | |
| tree | 8edf08a3a269e8184ea45de532e5cccf6adc724c /weed/util/constants.go | |
| parent | ea93d21641ca96cde2b71031a33f390a549090a6 (diff) | |
| download | seaweedfs-bc2ec6774d10349143dec326f227a2a809c01731.tar.xz seaweedfs-bc2ec6774d10349143dec326f227a2a809c01731.zip | |
inject git version into build
Diffstat (limited to 'weed/util/constants.go')
| -rw-r--r-- | weed/util/constants.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/weed/util/constants.go b/weed/util/constants.go index ced86b536..7c3927a66 100644 --- a/weed/util/constants.go +++ b/weed/util/constants.go @@ -6,4 +6,9 @@ import ( var ( VERSION = fmt.Sprintf("%s %d.%d", sizeLimit, 1, 79) + COMMIT = "" ) + +func Version() string { + return VERSION + " " + COMMIT +}
\ No newline at end of file |
