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:
parent
17f7fd1a3a
commit
74b37a3945
2
Makefile
2
Makefile
|
@ -2,7 +2,7 @@ export CGO_ENABLED=0
|
||||||
|
|
||||||
VERSION := $(shell git describe --tags --dirty --always)
|
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)
|
GOARCHES := $(shell go env GOARCH)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue