From a678fade5f6872ead13f8705dd954df6ea4f4971 Mon Sep 17 00:00:00 2001 From: Mathias Lafeldt Date: Thu, 7 Nov 2019 20:55:26 +0100 Subject: [PATCH] Produce reproducible Go builds See https://github.com/golang/go/issues/33772 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b847907..204de39 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ build: $(build_funcs) $(build_funcs): mkdir -p bin/$(@:build-%=%) - GOOS=linux GOARCH=amd64 go build -o bin/$(@:build-%=%)/handler ./$(@:build-%=%) + GOOS=linux GOARCH=amd64 go build -trimpath -ldflags=-buildid= -o bin/$(@:build-%=%)/handler ./$(@:build-%=%) # # lint