From d28b3d8801f677ccd451c42d9f7847a6657d1f1d Mon Sep 17 00:00:00 2001 From: Bala FA Date: Mon, 9 Oct 2017 22:23:59 -0700 Subject: [PATCH] Move to go1.9.1 as default environment. (#5041) --- .travis.yml | 4 +--- Makefile | 2 +- buildscripts/checkdeps.sh | 2 +- main.go | 4 ++-- main_test.go | 6 +++--- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6ffb1459e..22aa86c7e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Makefile b/Makefile index 7a8d640a7..2f5cbb91a 100644 --- a/Makefile +++ b/Makefile @@ -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/` diff --git a/buildscripts/checkdeps.sh b/buildscripts/checkdeps.sh index 645158cb7..2794ede8a 100644 --- a/buildscripts/checkdeps.sh +++ b/buildscripts/checkdeps.sh @@ -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) diff --git a/main.go b/main.go index 6c296030d..7ad6076a4 100644 --- a/main.go +++ b/main.go @@ -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 ) diff --git a/main_test.go b/main_test.go index ba9fbdbd0..b91d21010 100644 --- a/main_test.go +++ b/main_test.go @@ -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")}, }