Move to go1.9.4 with recent security release (#5502)

master
Harshavardhana 7 years ago committed by Nitish Tiwari
parent 047b7aff0c
commit fd3897d0c3
  1. 2
      .travis.yml
  2. 2
      Dockerfile
  3. 2
      Dockerfile.dev
  4. 2
      buildscripts/checkdeps.sh
  5. 4
      main.go
  6. 6
      main_test.go

@ -26,4 +26,4 @@ after_success:
- bash <(curl -s https://codecov.io/bash)
go:
- 1.9.1
- 1.9.4

@ -1,4 +1,4 @@
FROM golang:1.9.2-alpine3.6
FROM golang:1.9.4-alpine3.6
MAINTAINER Minio Inc <dev@minio.io>

@ -1,4 +1,4 @@
FROM golang:1.9.2-alpine3.6
FROM golang:1.9.4-alpine3.6
MAINTAINER Minio Inc <dev@minio.io>

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

@ -36,8 +36,8 @@ import (
)
const (
// Minio requires at least Go v1.9.1
minGoVersion = "1.9.1"
// Minio requires at least Go v1.9.4
minGoVersion = "1.9.4"
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.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.6.8", fmt.Errorf("Minio is not compiled by Go >= 1.9.4. Please recompile accordingly")},
{"1.5", fmt.Errorf("Minio is not compiled by Go >= 1.9.4. Please recompile accordingly")},
{"0.1", fmt.Errorf("Minio is not compiled by Go >= 1.9.4. Please recompile accordingly")},
{".1", fmt.Errorf("Malformed version: .1")},
{"somejunk", fmt.Errorf("Malformed version: somejunk")},
}

Loading…
Cancel
Save