From: Cameron Moore Date: Thu, 5 Oct 2017 17:54:40 +0000 (-0500) Subject: Simplify HugoNoGitInfo in magefile X-Git-Tag: v0.30~16 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=66a169a24967681dbf91dad6e1f9fd5dd624d95e;p=brevno-suite%2Fhugo Simplify HugoNoGitInfo in magefile --- diff --git a/magefile.go b/magefile.go index 39ab60a1..6d557223 100644 --- a/magefile.go +++ b/magefile.go @@ -69,9 +69,9 @@ func flagEnv() map[string]string { } // Build hugo without git info -func HugoNoGitInfo() { +func HugoNoGitInfo() error { ldflags = noGitLdflags - mg.Deps(Vendor, Hugo) + return Hugo() } var docker = sh.RunCmd("docker")