From c991546a7f82b1a430413e241a7baf3dd632d1ae Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Mon, 12 Sep 2022 16:59:11 -0400 Subject: k3s: pass -trimpath to improve reproducibility --- recipes-containers/k3s/k3s_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-containers/k3s/k3s_git.bb b/recipes-containers/k3s/k3s_git.bb index 66ff523b..957693ce 100644 --- a/recipes-containers/k3s/k3s_git.bb +++ b/recipes-containers/k3s/k3s_git.bb @@ -683,7 +683,7 @@ do_compile() { cp ${WORKDIR}/modules.txt vendor/ - ${GO} build -tags "$TAGS" -ldflags "${GO_BUILD_LDFLAGS} -w -s" -o ./dist/artifacts/k3s ./cmd/server/main.go + ${GO} build -trimpath -tags "$TAGS" -ldflags "${GO_BUILD_LDFLAGS} -w -s" -o ./dist/artifacts/k3s ./cmd/server/main.go # Use UPX if it is enabled (and thus exists) to compress binary if command -v upx > /dev/null 2>&1; then -- cgit v1.2.3-54-g00ecf