enable reproducible builds (#2525)
This commit is contained in:
1 parent
fed6651527
commit
647a64db09
1 file changed
+1
-1
+1
-1
@@ -10,6 +10,6 @@ set -o errexit -o nounset
|
|||||||
|
|
||||||
[ -z "${version:-}" ] && version=$(git describe --tags --abbrev=0)
|
[ -z "${version:-}" ] && version=$(git describe --tags --abbrev=0)
|
||||||
|
|
||||||
CGO_ENABLED=0 go build -ldflags="-s -w -X main.gVersion=$version" "$@"
|
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X main.gVersion=$version" "$@"
|
||||||
|
|
||||||
# vim: tabstop=4 shiftwidth=4 textwidth=80 colorcolumn=80
|
# vim: tabstop=4 shiftwidth=4 textwidth=80 colorcolumn=80
|
||||||
Reference in new issue
Block a user