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