mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Move to go1.9.1 as default environment. (#5041)
This commit is contained in:
parent
099b5293a9
commit
d28b3d8801
@ -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
|
||||
|
2
Makefile
2
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/`
|
||||
|
@ -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)
|
||||
|
4
main.go
4
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
|
||||
)
|
||||
|
||||
|
@ -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")},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user