From 7cea149bb0b510d2fb7fe71eee28d10399d0ceb4 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 13 Sep 2022 11:25:46 -0400 Subject: docker: reproducibility add -trimpath to go -> $GO patches With this, we build and package docker without QA warnings due to references to TMPDIR. Signed-off-by: Bruce Ashfield --- .../files/0001-cli-use-external-GO111MODULE-and-cross-compiler.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes-containers/docker/files/0001-cli-use-external-GO111MODULE-and-cross-compiler.patch') diff --git a/recipes-containers/docker/files/0001-cli-use-external-GO111MODULE-and-cross-compiler.patch b/recipes-containers/docker/files/0001-cli-use-external-GO111MODULE-and-cross-compiler.patch index 16b5f9e5..d68de1cf 100644 --- a/recipes-containers/docker/files/0001-cli-use-external-GO111MODULE-and-cross-compiler.patch +++ b/recipes-containers/docker/files/0001-cli-use-external-GO111MODULE-and-cross-compiler.patch @@ -19,6 +19,6 @@ Index: git/cli/scripts/build/binary -export GO111MODULE=auto -go build -o "${TARGET}" -tags "${GO_BUILDTAGS}" --ldflags "${GO_LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}" -+${GO} build -o "${TARGET}" -tags "${GO_BUILDTAGS}" --ldflags "${GO_LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}" ++${GO} build -trimpath -o "${TARGET}" -tags "${GO_BUILDTAGS}" --ldflags "${GO_LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}" ln -sf "$(basename "${TARGET}")" "$(dirname "${TARGET}")/docker" -- cgit v1.2.3-54-g00ecf