Skip to content

Commit 7ed26c3

Browse files
committed
Add build flags to make target to get reproducible builds
1 parent b36298c commit 7ed26c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ CGO = 0
44
.PHONY: all
55
all: tkey-verification
66

7+
# APP_VERSION ?= $(shell git describe --dirty --always | sed -n "s/^v\(.*\)/\1/p")
78
APP_VERSION ?= $(shell git describe --dirty --always | sed -n "s/^v\(.*\)/\1/p")
89
# .PHONY to let go-build handle deps and rebuilds
910
.PHONY: tkey-verification
1011
tkey-verification:
11-
CGO_ENABLED=$(CGO) go build -ldflags "-X main.version=$(APP_VERSION)" -trimpath -buildvcs=false ./cmd/tkey-verification
12+
CGO_ENABLED=$(CGO) go build -ldflags "-w -X main.version=$(APP_VERSION) -buildid=" -trimpath -buildvcs=false ./cmd/tkey-verification
1213
./tkey-verification --version
1314

1415
.PHONY: podman

0 commit comments

Comments
 (0)