Add version checks for golang 1.5.1

master
Harshavardhana 9 years ago
parent 87a20e3ba3
commit b5246dbd7d
  1. 2
      .travis.yml
  2. 2
      buildscripts/checkdeps.sh
  3. 2
      verify-runtime.go

@ -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=

@ -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)

@ -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.")
} }
} }

Loading…
Cancel
Save