We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a3ff35 commit 3d9227aCopy full SHA for 3d9227a
manage.sh
@@ -28,13 +28,18 @@ elif test "$cmd" = "release"; then
28
# CGO_ENABLED=0 skips CGO and linking against glibc to build static binaries.
29
# ld -s is 'disable symbol table'
30
# ld -w is 'disable DWARF generation'
31
+ # -trimpath removes leading paths to source files
32
# -v 'verbose'
33
# -o 'output'
34
GOOS=linux CGO_ENABLED=0 go build \
35
-ldflags="-s -w" \
36
+ -trimpath \
37
-v \
38
-o linux-amd64
39
sha256sum linux-amd64 > linux-amd64.sha256
40
+ echo ---
41
+ echo "wrote linux-amd64"
42
+ echo "wrote linux-amd64.sha256"
43
exit 0
44
45
elif test "$cmd" = "update-deps"; then
0 commit comments