mirror of
https://github.com/walles/moar.git
synced 2024-10-03 23:17:51 +03:00
Make panic messages look nicer
Cred to @daniejstriata for this flag: https://github.com/walles/moar/issues/201#issuecomment-1991628189
This commit is contained in:
parent
4939e6a123
commit
e92b01da07
2
build.sh
2
build.sh
@ -25,7 +25,7 @@ fi
|
||||
|
||||
# This line must be last in the script so that its return code
|
||||
# propagates properly to its caller
|
||||
go build -ldflags="-s -w -X main.versionString=${VERSION}" -o "${BINARY}"
|
||||
go build -trimpath -ldflags="-s -w -X main.versionString=${VERSION}" -o "${BINARY}"
|
||||
|
||||
# Alternative build line, if you want to attach to the running process in the Go debugger:
|
||||
# go build -ldflags="-X main.versionString=${VERSION}" -gcflags='-N -l' -o "${BINARY}"
|
||||
|
Loading…
Reference in New Issue
Block a user