projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdbef2a
)
mage: Do not run Go Fmt check on Go tip
author
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Thu, 7 Dec 2017 21:38:54 +0000
(22:38 +0100)
committer
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Thu, 7 Dec 2017 21:38:54 +0000
(22:38 +0100)
magefile.go
patch
|
blob
|
history
diff --git
a/magefile.go
b/magefile.go
index 31da50686116f3d89a09353a4bca65ae527928aa..d74aaa3eee9e884b1cfcfde833ff90f38813ff97 100644
(file)
--- 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")
+}