Skip to content

Commit

Permalink
nerdctl: reproducibility, path -trmpath to build
Browse files Browse the repository at this point in the history
To avoid go embedding references to the build dir into binaries,
we pass -trimpath to the build.

Signed-off-by: Bruce Ashfield <[email protected]>
  • Loading branch information
zeddii committed Sep 12, 2022
1 parent 7106007 commit 08a59b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes-containers/nerdctl/nerdctl_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08a59b4

Please sign in to comment.