Skip to content

Commit

Permalink
Trim paths from release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Mar 11, 2022
1 parent 4fb41a3 commit b306b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build-cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ for PLATFORM in $PLATFORMS; do
rm -f "${BIN_DIR}/${BIN_FILENAME}"
rm -f "${TAR_FILENAME}"

CMD="GOARM=${GOARM} GOOS=${GOOS} GOARCH=${GOARCH} go build -o ${BIN_DIR}/${BIN_FILENAME} $($(dirname "${BASH_SOURCE}")/print-ldflags.sh) $@"
CMD="GOARM=${GOARM} GOOS=${GOOS} GOARCH=${GOARCH} go build -trimpath -o ${BIN_DIR}/${BIN_FILENAME} $($(dirname "${BASH_SOURCE}")/print-ldflags.sh) $@"

echo "${CMD}"
eval $CMD || FAILURES="${FAILURES} ${PLATFORM}"
Expand Down

0 comments on commit b306b25

Please sign in to comment.