returnfmt.Errorf("Minio is not compiled by Go %s. Please recompile accordingly",
goVersionConstraint)
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:])
}
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.
// However such binary will fail at runtime, hence we also check Go version at runtime.