returnfmt.Errorf("Minio is not compiled by Go %s. Please recompile accordingly",
returnfmt.Errorf("Minio is not compiled by go %s. Minimum required version is %s, go %s release is known to have security issues. Please recompile accordingly",goVersionConstraint,minGoVersion,runtime.Version()[2:])
goVersionConstraint)
}
}
returnnil
returnnil
@ -65,7 +64,7 @@ func main() {
// When `go get` is used minimum Go version check is not triggered but it would have compiled it successfully.
// When `go get` is used minimum Go version check is not triggered but it would have compiled it successfully.
// However such binary will fail at runtime, hence we also check Go version at runtime.
// However such binary will fail at runtime, hence we also check Go version at runtime.