build: add trimpath and ldflags to trim resulting binary

This commit is contained in:
Trong Huu Nguyen
2023-03-08 12:55:17 +01:00
parent 3dc3c1dee5
commit da05c7808d

View File

@@ -1,5 +1,5 @@
wonderwall:
go build -a -o bin/wonderwall cmd/wonderwall/main.go
go build -trimpath -ldflags "-s -w" -a -o bin/wonderwall cmd/wonderwall/main.go
test:
go test -count=1 ./... -coverprofile cover.out