From e4a22c7ee5d1b7e2ae8bc0152bfa9b647bb137f5 Mon Sep 17 00:00:00 2001 From: Leo Antunes Date: Fri, 29 Mar 2019 20:50:08 +0100 Subject: [PATCH] improve build repeatability still not quite there, but this should make it a bit easier refs #2 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6777b76..0c3b7bf 100644 --- a/Makefile +++ b/Makefile @@ -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}