aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAddy Yeow <ayeowch@gmail.com>2017-06-27 15:11:41 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-06-27 15:11:41 +0800
commitcf611c50b9bd7a7c410a49699e0c4e718b4a7177 (patch)
tree4af6f76543c7bbbc4c734152a89d4d2eeab7d5a3 /build
parentc008176f9f492b6a783b8f7e08c08d91aa04e201 (diff)
downloaddexon-cf611c50b9bd7a7c410a49699e0c4e718b4a7177.tar.gz
dexon-cf611c50b9bd7a7c410a49699e0c4e718b4a7177.tar.zst
dexon-cf611c50b9bd7a7c410a49699e0c4e718b4a7177.zip
build: fix devel golang detection on debian/ubuntu (#14711)
Diffstat (limited to 'build')
-rw-r--r--build/ci.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/ci.go b/build/ci.go
index 47b1dc780..6a52077d4 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.")