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

master
Bala FA 7 years ago committed by Harshavardhana
parent 099b5293a9
commit d28b3d8801
  1. 4
      .travis.yml
  2. 2
      Makefile
  3. 2
      buildscripts/checkdeps.sh
  4. 4
      main.go
  5. 6
      main_test.go

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

@ -47,7 +47,7 @@ cyclo:
deadcode: deadcode:
@echo "Running $@" @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: spelling:
@${GOPATH}/bin/misspell -error `find cmd/` @${GOPATH}/bin/misspell -error `find cmd/`

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

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

@ -28,9 +28,9 @@ func TestCheckGoVersion(t *testing.T) {
expectedErr error expectedErr error
}{ }{
{minGoVersion, nil}, {minGoVersion, nil},
{"1.6.8", 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.8.3. 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.8.3. 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")}, {".1", fmt.Errorf("Malformed version: .1")},
{"somejunk", fmt.Errorf("Malformed version: somejunk")}, {"somejunk", fmt.Errorf("Malformed version: somejunk")},
} }

Loading…
Cancel
Save