update godist
This commit is contained in:
parent
7a9b271b90
commit
dff36f6bff
6
build.sh
6
build.sh
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user