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.
# GOARCH/GOOS supplied in function env
local gofwdpath=$(echo -n $GOPATH | sed 's/[\\/]$//')
go build \
-a \
-ldflags "-s -w -X main.VERSION=nmdc-webfrontend/${version}" \
-gcflags "-trimpath=${GOPATH}" \
-asmflags "-trimpath=${GOPATH}" \
-gcflags "-trimpath ${gofwdpath}" \
-asmflags "-trimpath ${gofwdpath}" \
-o "$(pathfix "${tmpdir}/${local_bin_name}")"
# Archive.