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.
This commit is contained in:
Leo Antunes 2019-11-26 21:15:23 +01:00
parent 17f7fd1a3a
commit 74b37a3945
1 changed files with 1 additions and 1 deletions

View File

@ -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)