From 64f6c7ff5b2435d1253f10e4bdedd33638baa02c Mon Sep 17 00:00:00 2001 From: ZanzyTHEbar Date: Wed, 18 Feb 2026 15:55:52 +0000 Subject: [PATCH] build: add -trimpath flag for reproducible builds Strip absolute file system paths from compiled binary to improve build reproducibility and reduce information leakage. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 486e75130..c9f493873 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ LDFLAGS=-ldflags "-X main.version=$(VERSION) -X main.gitCommit=$(GIT_COMMIT) -X # Go variables GO?=go -GOFLAGS?=-v -tags stdjson +GOFLAGS?=-v -trimpath -tags stdjson # Installation INSTALL_PREFIX?=$(HOME)/.local