Merge pull request #834 from harshavardhana/version-checks

Add version checks for golang 1.5.1
master
Harshavardhana 9 years ago
commit d8656c80bc
  1. 2
      .travis.yml
  2. 2
      buildscripts/checkdeps.sh
  3. 2
      verify-runtime.go

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

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

@ -90,7 +90,7 @@ func checkGolangRuntimeVersion() {
v1 := newVersion(getNormalizedGolangVersion())
v2 := newVersion(minGolangRuntimeVersion)
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