Put -s and -w in the right spot (#3135)
This commit is contained in:
parent
93349f247e
commit
02f68d68d6
2
Makefile
2
Makefile
@ -217,7 +217,7 @@ binary:
|
||||
-e GOOS=${GOOS} -e GOARCH=${GOARCH} -e GOARM=6 -e CGO_ENABLED=1 \
|
||||
-v /tmp/go-cache:/tmp/.cache/go-build -v /tmp/go-pkg:/go/pkg \
|
||||
-w /go/src/storj.io/storj -e GOPROXY -u $(shell id -u):$(shell id -g) storjlabs/golang:${GO_VERSION} \
|
||||
scripts/release.sh build -ldflags "-s -w" -o release/${TAG}/$(COMPONENT)_${GOOS}_${GOARCH}${FILEEXT} \
|
||||
scripts/release.sh build -o release/${TAG}/$(COMPONENT)_${GOOS}_${GOARCH}${FILEEXT} \
|
||||
storj.io/storj/cmd/${COMPONENT}
|
||||
chmod 755 release/${TAG}/$(COMPONENT)_${GOOS}_${GOARCH}${FILEEXT}
|
||||
[ "${FILEEXT}" = ".exe" ] && storj-sign release/${TAG}/$(COMPONENT)_${GOOS}_${GOARCH}${FILEEXT} || echo "Skipping signing"
|
||||
|
@ -28,7 +28,7 @@ fi
|
||||
|
||||
echo Running "go $@"
|
||||
exec go "$1" -ldflags \
|
||||
"-X storj.io/storj/internal/version.buildTimestamp=$TIMESTAMP
|
||||
"-s -w -X storj.io/storj/internal/version.buildTimestamp=$TIMESTAMP
|
||||
-X storj.io/storj/internal/version.buildCommitHash=$COMMIT
|
||||
-X storj.io/storj/internal/version.buildVersion=$VERSION
|
||||
-X storj.io/storj/internal/version.buildRelease=$RELEASE" "${@:2}"
|
||||
|
Loading…
Reference in New Issue
Block a user