releaser: Fix BuildDate in release binaries
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 22 Jan 2018 10:21:58 +0000 (11:21 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 22 Jan 2018 10:21:58 +0000 (11:21 +0100)
Fixes #4299

goreleaser.yml

index 5a22d325df0b63ffeeae2faaa9d11307d0fac540..caa4c7305dd1c6a75dde5ee7e39d84d59995d53d 100644 (file)
@@ -1,7 +1,7 @@
 build:
   main: main.go
   binary: hugo
-  ldflags: -s -w -X hugolib.BuildDate={{.Date}}
+  ldflags: -s -w -X github.com/gohugoio/hugo/hugolib.BuildDate={{.Date}}
   env:
     - CGO_ENABLED=0
   goos: