Skip to content

Commit

Permalink
feat(make): add -trimpath
Browse files Browse the repository at this point in the history
trimpath removes the build directory path in the binary
  • Loading branch information
hazcod authored Feb 15, 2021
1 parent feae347 commit 78fcf6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: clean build run

build:
CGO_ENABLED=0 go build -ldflags '-w -s -extldflags "-static"' -o dist/app ./cmd
CGO_ENABLED=0 go build -trimpath -ldflags '-w -s -extldflags "-static"' -o dist/app ./cmd

run:
go run ./dist/
Expand Down

0 comments on commit 78fcf6e

Please sign in to comment.