improve build repeatability

still not quite there, but this should make it a bit easier

refs #2
This commit is contained in:
Leo Antunes 2019-03-29 20:50:08 +01:00
parent 78a05ddb5b
commit e4a22c7ee5
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
VERSION=`git describe --tags --dirty --always`
GOFLAGS=-ldflags "-X main.version=${VERSION}" -asmflags -trimpath
GOFLAGS=-ldflags "-X main.version=${VERSION}" -gcflags=all=-trimpath=$(PWD) -asmflags=all=-trimpath=$(PWD)
build:
GOARCH=amd64 go build ${GOFLAGS} -o wesher-amd64 ${OPTS}