Skip to content

Commit

Permalink
manage.sh, 'release' command now trims paths to local source files
Browse files Browse the repository at this point in the history
  • Loading branch information
lsh-0 committed Jun 6, 2023
1 parent 6a3ff35 commit 3d9227a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,18 @@ elif test "$cmd" = "release"; then
# CGO_ENABLED=0 skips CGO and linking against glibc to build static binaries.
# ld -s is 'disable symbol table'
# ld -w is 'disable DWARF generation'
# -trimpath removes leading paths to source files
# -v 'verbose'
# -o 'output'
GOOS=linux CGO_ENABLED=0 go build \
-ldflags="-s -w" \
-trimpath \
-v \
-o linux-amd64
sha256sum linux-amd64 > linux-amd64.sha256
echo ---
echo "wrote linux-amd64"
echo "wrote linux-amd64.sha256"
exit 0

elif test "$cmd" = "update-deps"; then
Expand Down

0 comments on commit 3d9227a

Please sign in to comment.