mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
go1.8: Changes to support golang 1.8 (#4759)
QuirkConn is added to replace net.Conn as a workaround to a golang bug: https://github.com/golang/go/issues/21133
This commit is contained in:
committed by
Harshavardhana
parent
218049300c
commit
b4dc6df35c
6
main.go
6
main.go
@@ -33,8 +33,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
// Minio requires at least Go v1.7
|
||||
minGoVersion = "1.7"
|
||||
// Minio requires at least Go v1.8.3
|
||||
minGoVersion = "1.8.3"
|
||||
goVersionConstraint = ">= " + minGoVersion
|
||||
)
|
||||
|
||||
@@ -51,7 +51,7 @@ func checkGoVersion(goVersionStr string) error {
|
||||
}
|
||||
|
||||
if !constraint.Check(goVersion) {
|
||||
return fmt.Errorf("Minio is not compiled by Go %s. Please recompile accordingly.",
|
||||
return fmt.Errorf("Minio is not compiled by Go %s. Please recompile accordingly",
|
||||
goVersionConstraint)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user