shithub: hugo

Download patch

ref: 133cfd1710f2558b93444e0b3866010b5fba21c7
parent: db1a5af15db75dbdf64697c5c31d919bac3acc41
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Sat Oct 21 14:44:49 EDT 2017

mage: Skip Check on Go 1.8

See #3988

--- a/magefile.go
+++ b/magefile.go
@@ -9,6 +9,7 @@
 	"io/ioutil"
 	"os"
 	"path/filepath"
+	"runtime"
 	"strings"
 	"time"
 
@@ -95,6 +96,12 @@
 
 // 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.
--