update godist

This commit is contained in:
mappu 2017-02-11 14:13:58 +13:00
parent 7a9b271b90
commit dff36f6bff

View File

@ -86,11 +86,13 @@ single_build() {
# Build. # Build.
# GOARCH/GOOS supplied in function env # GOARCH/GOOS supplied in function env
local gofwdpath=$(echo -n $GOPATH | sed 's/[\\/]$//')
go build \ go build \
-a \ -a \
-ldflags "-s -w -X main.VERSION=nmdc-webfrontend/${version}" \ -ldflags "-s -w -X main.VERSION=nmdc-webfrontend/${version}" \
-gcflags "-trimpath=${GOPATH}" \ -gcflags "-trimpath ${gofwdpath}" \
-asmflags "-trimpath=${GOPATH}" \ -asmflags "-trimpath ${gofwdpath}" \
-o "$(pathfix "${tmpdir}/${local_bin_name}")" -o "$(pathfix "${tmpdir}/${local_bin_name}")"
# Archive. # Archive.