aboutsummaryrefslogtreecommitdiffhomepage
path: root/magefile.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-10-21 18:44:49 +0200
committerBjørn Erik Pedersen <[email protected]>2017-10-21 19:30:23 +0200
commit133cfd1710f2558b93444e0b3866010b5fba21c7 (patch)
tree05db1422c98c783065f47bbe7c14dd40a122842a /magefile.go
parentdb1a5af15db75dbdf64697c5c31d919bac3acc41 (diff)
downloadhugo-133cfd1710f2558b93444e0b3866010b5fba21c7.tar.gz
hugo-133cfd1710f2558b93444e0b3866010b5fba21c7.zip
mage: Skip Check on Go 1.8
See #3988
Diffstat (limited to 'magefile.go')
-rw-r--r--magefile.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/magefile.go b/magefile.go
index 25cf75cb0..31da50686 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.