1 unable to pass -X main.buildDate as ldflags if it contains space
3 likely go link command lacks proper argument passing that it loses spaces
5 so patch the source directly
7 --- caddy-0.8.3/main.go~ 2016-04-26 18:28:05.000000000 +0300
8 +++ caddy-0.8.3/main.go 2016-05-22 14:13:18.927407255 +0300
10 appVersion = "(untracked dev build)" // inferred at startup
11 devBuild = true // inferred at startup
13 - buildDate string // date -u
14 + buildDate = "(unknown)" // date -u
15 gitTag string // git describe --exact-match HEAD 2> /dev/null
16 gitNearestTag string // git describe --abbrev=0 --tags HEAD
17 gitCommit string // git rev-parse HEAD