mage: Skip Check on Go 1.8
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 21 Oct 2017 16:44:49 +0000 (18:44 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 21 Oct 2017 17:30:23 +0000 (19:30 +0200)
See #3988

magefile.go

index 25cf75cb05161274c43d0d03e1baf49eaf988633..31da50686116f3d89a09353a4bca65ae527928aa 100644 (file)
@@ -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.