From f9935a0345475f1f0a4da547e89bfe4b8add4d79 Mon Sep 17 00:00:00 2001 From: ayeowch Date: Tue, 27 Jun 2017 14:05:52 +1000 Subject: [PATCH] build: Fix devel golang detection --- build/ci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/ci.go b/build/ci.go index 47b1dc780b..6a52077d45 100644 --- a/build/ci.go +++ b/build/ci.go @@ -175,7 +175,7 @@ func doInstall(cmdline []string) { // Check Go version. People regularly open issues about compilation // failure with outdated Go. This should save them the trouble. - if runtime.Version() < "go1.7" && !strings.HasPrefix(runtime.Version(), "devel") { + if runtime.Version() < "go1.7" && !strings.Contains(runtime.Version(), "devel") { log.Println("You have Go version", runtime.Version()) log.Println("go-ethereum requires at least Go version 1.7 and cannot") log.Println("be compiled with an earlier version. Please upgrade your Go installation.")