From 133cfd1710f2558b93444e0b3866010b5fba21c7 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?=
 <bjorn.erik.pedersen@gmail.com>
Date: Sat, 21 Oct 2017 18:44:49 +0200
Subject: [PATCH] mage: Skip Check on Go 1.8

See #3988
---
 magefile.go | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/magefile.go b/magefile.go
index 25cf75cb..31da5068 100644
--- a/magefile.go
+++ b/magefile.go
@@ -9,6 +9,7 @@ import (
 	"io/ioutil"
 	"os"
 	"path/filepath"
+	"runtime"
 	"strings"
 	"time"
 
@@ -95,6 +96,12 @@ func Docker() error {
 
 // Run tests and linters
 func Check() {
+	if strings.Contains(runtime.Version(), "1.8") {
+		// Go 1.8 doesn't play along with go test ./... and /vendor.
+		// We could fix that, but that would take time.
+		fmt.Printf("Skip Check on %s\n", runtime.Version())
+		return
+	}
 	mg.Deps(Test386, Fmt, Vet)
 	// don't run two tests in parallel, they saturate the CPUs anyway, and running two
 	// causes memory issues in CI.
-- 
2.30.2