Merge pull request #834 from harshavardhana/version-checks

Add version checks for golang 1.5.1
This commit is contained in:
Harshavardhana 2015-09-17 16:36:56 -07:00
commit d8656c80bc
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ before_install:
- cd .. - cd ..
sudo: false sudo: false
go: go:
- 1.5 - 1.5.1
notifications: notifications:
slack: slack:
secure: K9tsn5MvrCAxuEZTxn+m3Kq1K2NG2xMEJFSv/sTp+RQBW7TslPHzv859GsIvrm8mU1y1btOU9RlOzqrRUczI5cJpE8IL1oljPZbXrIXgetE0kbsw0Wpy99g27UQ2VGp933WDu8tfj7zU4cZv+BI0RltNLwqYO6GWXmcWP0IueCU= secure: K9tsn5MvrCAxuEZTxn+m3Kq1K2NG2xMEJFSv/sTp+RQBW7TslPHzv859GsIvrm8mU1y1btOU9RlOzqrRUczI5cJpE8IL1oljPZbXrIXgetE0kbsw0Wpy99g27UQ2VGp933WDu8tfj7zU4cZv+BI0RltNLwqYO6GWXmcWP0IueCU=

View File

@ -24,7 +24,7 @@ _init() {
CLANG_VERSION="3.5" CLANG_VERSION="3.5"
YASM_VERSION="1.2.0" YASM_VERSION="1.2.0"
GIT_VERSION="1.0" GIT_VERSION="1.0"
GO_VERSION="1.5" GO_VERSION="1.5.1"
OSX_VERSION="10.8" OSX_VERSION="10.8"
UNAME=$(uname -sm) UNAME=$(uname -sm)

View File

@ -90,7 +90,7 @@ func checkGolangRuntimeVersion() {
v1 := newVersion(getNormalizedGolangVersion()) v1 := newVersion(getNormalizedGolangVersion())
v2 := newVersion(minGolangRuntimeVersion) v2 := newVersion(minGolangRuntimeVersion)
if v1.LessThan(v2) { if v1.LessThan(v2) {
Errorln("Old Golang runtime version " + v1.String() + " detected., mc requires minimum go1.5 or later.") Errorln("Old Golang runtime version " + v1.String() + " detected., mc requires minimum go1.5.1 or later.")
} }
} }