Skip to content

Commit

Permalink
Make panic messages look nicer
Browse files Browse the repository at this point in the history
Cred to @daniejstriata for this flag:
#201 (comment)
  • Loading branch information
walles committed Mar 19, 2024
1 parent 4939e6a commit e92b01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit e92b01d

Please sign in to comment.