From 08a59b4d934f601307d0a3cb9ab3a835904baecb Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Mon, 12 Sep 2022 14:36:56 -0400 Subject: nerdctl: reproducibility, path -trmpath to build To avoid go embedding references to the build dir into binaries, we pass -trimpath to the build. Signed-off-by: Bruce Ashfield --- recipes-containers/nerdctl/nerdctl_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-containers/nerdctl/nerdctl_git.bb b/recipes-containers/nerdctl/nerdctl_git.bb index d5e28e14..4a749b27 100644 --- a/recipes-containers/nerdctl/nerdctl_git.bb +++ b/recipes-containers/nerdctl/nerdctl_git.bb @@ -64,7 +64,7 @@ do_compile() { export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" - export GOFLAGS="-mod=vendor" + export GOFLAGS="-mod=vendor -trimpath" # this moves all the fetches into the proper vendor structure # expected for build -- cgit v1.2.3-54-g00ecf