Skip to content

Commit

Permalink
build: fix devel golang detection on debian/ubuntu (#14711)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeowch authored and fjl committed Jun 27, 2017
1 parent c008176 commit cf611c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit cf611c5

Please sign in to comment.