Skip to content

Commit 3d9227a

Browse files
committed
manage.sh, 'release' command now trims paths to local source files
1 parent 6a3ff35 commit 3d9227a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

manage.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,18 @@ elif test "$cmd" = "release"; then
2828
# CGO_ENABLED=0 skips CGO and linking against glibc to build static binaries.
2929
# ld -s is 'disable symbol table'
3030
# ld -w is 'disable DWARF generation'
31+
# -trimpath removes leading paths to source files
3132
# -v 'verbose'
3233
# -o 'output'
3334
GOOS=linux CGO_ENABLED=0 go build \
3435
-ldflags="-s -w" \
36+
-trimpath \
3537
-v \
3638
-o linux-amd64
3739
sha256sum linux-amd64 > linux-amd64.sha256
40+
echo ---
41+
echo "wrote linux-amd64"
42+
echo "wrote linux-amd64.sha256"
3843
exit 0
3944

4045
elif test "$cmd" = "update-deps"; then

0 commit comments

Comments
 (0)