Browse Source

Merge pull request #1410 from bluecmd/patch-1

Allow custom ldflags for go build
pull/1412/head
Fabian Reinartz 9 years ago
parent
commit
209c4ad64f
  1. 3
      scripts/build.sh

3
scripts/build.sh

@ -34,7 +34,8 @@ ldflags="
-X ${repo_path}/version.Branch=${branch}
-X ${repo_path}/version.BuildUser=${USER}@${host}
-X ${repo_path}/version.BuildDate=${build_date}
-X ${repo_path}/version.GoVersion=${go_version}"
-X ${repo_path}/version.GoVersion=${go_version}
${EXTRA_LDFLAGS}"
export GO15VENDOREXPERIMENT="1"

Loading…
Cancel
Save