diff options
Diffstat (limited to 'vendor/github.com/mattermost/platform/model/version.go')
-rw-r--r-- | vendor/github.com/mattermost/platform/model/version.go | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/vendor/github.com/mattermost/platform/model/version.go b/vendor/github.com/mattermost/platform/model/version.go index b3950dcc..fe90644b 100644 --- a/vendor/github.com/mattermost/platform/model/version.go +++ b/vendor/github.com/mattermost/platform/model/version.go @@ -13,6 +13,7 @@ import ( // It should be maitained in chronological order with most current // release at the front of the list. var versions = []string{ + "2.2.0", "2.1.0", "2.0.0", "1.4.0", @@ -28,10 +29,10 @@ var versions = []string{ } var CurrentVersion string = versions[0] -var BuildNumber string -var BuildDate string -var BuildHash string -var BuildEnterpriseReady string +var BuildNumber = "_BUILD_NUMBER_" +var BuildDate = "_BUILD_DATE_" +var BuildHash = "_BUILD_HASH_" +var BuildEnterpriseReady = "_BUILD_ENTERPRISE_READY_" var versionsWithoutHotFixes []string func init() { @@ -118,10 +119,5 @@ func IsPreviousVersionsSupported(versionToCheck string) bool { return true } - // Current - 3 Supported - if versionsWithoutHotFixes[3] == versionToCheckStr { - return true - } - return false } |