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, 10 insertions, 4 deletions
diff --git a/vendor/github.com/mattermost/platform/model/version.go b/vendor/github.com/mattermost/platform/model/version.go index fe90644b..4a47f06e 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{ + "3.0.0", "2.2.0", "2.1.0", "2.0.0", @@ -29,10 +30,10 @@ var versions = []string{ } var CurrentVersion string = versions[0] -var BuildNumber = "_BUILD_NUMBER_" -var BuildDate = "_BUILD_DATE_" -var BuildHash = "_BUILD_HASH_" -var BuildEnterpriseReady = "_BUILD_ENTERPRISE_READY_" +var BuildNumber string +var BuildDate string +var BuildHash string +var BuildEnterpriseReady string var versionsWithoutHotFixes []string func init() { @@ -119,5 +120,10 @@ func IsPreviousVersionsSupported(versionToCheck string) bool { return true } + // Current - 3 Supported + if versionsWithoutHotFixes[3] == versionToCheckStr { + return true + } + return false } |