Skip to content

Commit d8a426d

Browse files
committed
Trim the absolute path when building the binary to prevent builder person's path from appearing in panics
1 parent 6cbef93 commit d8a426d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VERSION = 0.0.1
22
BUILD ?=$(shell git rev-parse --short HEAD)
33
PKG ?=github.com/commitdev/zero
4-
BUILD_ARGS=-v -ldflags=all="-X ${PKG}/cmd.appVersion=${VERSION} -X ${PKG}/cmd.appBuild=${BUILD}"
4+
BUILD_ARGS=-v -trimpath -ldflags=all="-X ${PKG}/cmd.appVersion=${VERSION} -X ${PKG}/cmd.appBuild=${BUILD}"
55

66
deps:
77
go mod download

0 commit comments

Comments
 (0)