build: Default to Golang 1.6

This commit is contained in:
Harshavardhana
2016-02-18 16:08:07 -08:00
parent fa82223c50
commit fb70ef7b1c
6 changed files with 13 additions and 11 deletions
+1 -2
View File
@@ -13,8 +13,7 @@ env:
- ARCH=i686
go:
- 1.5.2
- 1.5.3
- 1.6
script:
- diff -au <(gofmt -d *.go) <(printf "")
+5 -5
View File
@@ -7,15 +7,15 @@ This installation guide is based on Ubuntu 14.04+ on x86-64 platform.
$ sudo apt-get install git build-essential
```
##### Install Go 1.5+
##### Install Go 1.6+
Download Go 1.5+ from [https://golang.org/dl/](https://golang.org/dl/).
Download Go 1.6+ from [https://golang.org/dl/](https://golang.org/dl/).
```sh
$ wget https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
$ wget https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz
$ mkdir -p ${HOME}/bin/
$ mkdir -p ${HOME}/go/
$ tar -C ${HOME}/bin/ -xzf go1.5.1.linux-amd64.tar.gz
$ tar -C ${HOME}/bin/ -xzf go1.6.linux-amd64.tar.gz
```
##### Setup GOROOT and GOPATH
@@ -53,7 +53,7 @@ $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/maste
$ brew install git python
```
##### Install Go 1.5+
##### Install Go 1.6+
Install golang binaries using `brew`
+3
View File
@@ -14,6 +14,9 @@ environment:
# scripts that run after cloning repository
install:
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
- rd C:\Go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.6.windows-amd64.zip
- 7z x go1.6.windows-amd64.zip -oC:\ >nul
- go version
- go env
- go get -u github.com/golang/lint/golint
+1 -1
View File
@@ -21,7 +21,7 @@ _init() {
## Minimum required versions for build dependencies
GIT_VERSION="1.0"
GO_VERSION="1.5.1"
GO_VERSION="1.6"
OSX_VERSION="10.8"
UNAME=$(uname -sm)
+1 -1
View File
@@ -121,7 +121,7 @@ func (s *TestSuite) TestCommonPrefix(c *C) {
}
func (s *TestSuite) TestVersions(c *C) {
v1 := newVersion("1.5.1")
v1 := newVersion("1.6")
v2 := newVersion("1.5.0")
c.Assert(v2.LessThan(v1), Equals, true)
c.Assert(v1.LessThan(v2), Equals, false)
+2 -2
View File
@@ -28,7 +28,7 @@ import (
)
// minGolangRuntimeVersion minimum golang runtime version required for 'mc'.
var minGolangRuntimeVersion = "1.5.1"
var minGolangRuntimeVersion = "1.6"
// Following code handles the current Golang release styles.
// We might have to update them in future, if golang community
@@ -95,7 +95,7 @@ func checkGolangRuntimeVersion() {
v2 := newVersion(minGolangRuntimeVersion)
if v1.LessThan(v2) {
fatalIf(errDummy().Trace(getNormalizedGolangVersion(), minGolangRuntimeVersion),
"Old Golang runtime version ‘"+v1.String()+"’ detected., ‘mc’ requires minimum go1.5.1 or later.")
"Old Golang runtime version ‘"+v1.String()+"’ detected., ‘mc’ requires minimum go1.6 or later.")
}
}