summaryrefslogtreecommitdiffstats
path: root/magefile.go
diff options
context:
space:
mode:
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 31da50686..d74aaa3ee 100644
--- a/magefile.go
+++ b/magefile.go
@@ -127,6 +127,9 @@ func TestRace() error {
// Run gofmt linter
func Fmt() error {
+ if isGoTip() {
+ return nil
+ }
pkgs, err := hugoPackages()
if err != nil {
return err
@@ -256,3 +259,7 @@ func CheckVendor() error {
}
return nil
}
+
+func isGoTip() bool {
+ return strings.Contains(runtime.Version(), "devel")
+}