Move to go1.9.1 as default environment. (#5041)

This commit is contained in:
Bala FA 2017-10-09 22:23:59 -07:00 committed by Harshavardhana
parent 099b5293a9
commit d28b3d8801
5 changed files with 8 additions and 10 deletions

View file

@ -13,7 +13,6 @@ os:
env:
- ARCH=x86_64
- ARCH=i686
script:
## Run all the tests
@ -27,5 +26,4 @@ after_success:
- bash <(curl -s https://codecov.io/bash)
go:
- 1.9.x
- 1.8.x
- 1.9.1

View file

@ -47,7 +47,7 @@ cyclo:
deadcode:
@echo "Running $@"
@${GOPATH}/bin/deadcode -test $(shell go list ./... | grep -v -e browser -e vendor) || true
@${GOPATH}/bin/deadcode -test $(shell go list ./...) || true
spelling:
@${GOPATH}/bin/misspell -error `find cmd/`

View file

@ -21,7 +21,7 @@ _init() {
## Minimum required versions for build dependencies
GIT_VERSION="1.0"
GO_VERSION="1.8.3"
GO_VERSION="1.9.1"
OSX_VERSION="10.8"
KNAME=$(uname -s)
ARCH=$(uname -m)

View file

@ -33,8 +33,8 @@ import (
)
const (
// Minio requires at least Go v1.8.3
minGoVersion = "1.8.3"
// Minio requires at least Go v1.9.1
minGoVersion = "1.9.1"
goVersionConstraint = ">= " + minGoVersion
)

View file

@ -28,9 +28,9 @@ func TestCheckGoVersion(t *testing.T) {
expectedErr error
}{
{minGoVersion, nil},
{"1.6.8", fmt.Errorf("Minio is not compiled by Go >= 1.8.3. Please recompile accordingly")},
{"1.5", fmt.Errorf("Minio is not compiled by Go >= 1.8.3. Please recompile accordingly")},
{"0.1", fmt.Errorf("Minio is not compiled by Go >= 1.8.3. Please recompile accordingly")},
{"1.6.8", fmt.Errorf("Minio is not compiled by Go >= 1.9.1. Please recompile accordingly")},
{"1.5", fmt.Errorf("Minio is not compiled by Go >= 1.9.1. Please recompile accordingly")},
{"0.1", fmt.Errorf("Minio is not compiled by Go >= 1.9.1. Please recompile accordingly")},
{".1", fmt.Errorf("Malformed version: .1")},
{"somejunk", fmt.Errorf("Malformed version: somejunk")},
}