]> git.pld-linux.org Git - packages/caddy.git/blob - build-date.patch
include gitTag for version
[packages/caddy.git] / build-date.patch
1 unable to pass -X main.buildDate as ldflags if it contains space
2
3 likely go link command lacks proper argument passing that it loses spaces
4
5 so patch the source directly
6
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
9 @@ -233,7 +233,7 @@
10         appVersion = "(untracked dev build)" // inferred at startup
11         devBuild   = true                    // inferred at startup
12  
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
This page took 0.110059 seconds and 3 git commands to generate.