From 74b37a39459ae2d8e49f8fbde0e48d60ba2da759 Mon Sep 17 00:00:00 2001 From: Leo Antunes Date: Tue, 26 Nov 2019 21:15:23 +0100 Subject: [PATCH] Makefile: remove go BuildID The GOROOT is used to calculate the buildID, which may change depending on OS/environment/etc. Removing it, together with -trimpath, should make the build fully reproducible. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 34a549d..fdda57e 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ export CGO_ENABLED=0 VERSION := $(shell git describe --tags --dirty --always) -GOFLAGS := -ldflags "-X main.version=$(VERSION)" -trimpath +GOFLAGS := -ldflags "-X main.version=$(VERSION) -buildid=" -trimpath GOARCHES := $(shell go env GOARCH)