shithub: hugo

Download patch

ref: 31535261610b34131c68ec760db8b29cac1548dd
parent: fdbef2a81c619930233b6f85682fd88b7b870f78
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Dec 7 17:38:54 EST 2017

mage: Do not run Go Fmt check on Go tip

--- a/magefile.go
+++ b/magefile.go
@@ -127,6 +127,9 @@
 
 // Run gofmt linter
 func Fmt() error {
+	if isGoTip() {
+		return nil
+	}
 	pkgs, err := hugoPackages()
 	if err != nil {
 		return err
@@ -255,4 +258,8 @@
 		return errors.New("check-vendor target failed: vendored packages out of sync")
 	}
 	return nil
+}
+
+func isGoTip() bool {
+	return strings.Contains(runtime.Version(), "devel")
 }