diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2022-09-13 11:25:46 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2022-09-13 11:25:46 -0400 |
commit | 7cea149bb0b510d2fb7fe71eee28d10399d0ceb4 (patch) | |
tree | 4193fcc0a3c56ddde0f8244634c4207b18a3a045 /recipes-containers/docker/files/0001-cli-use-external-GO111MODULE-and-cross-compiler.patch | |
parent | c991546a7f82b1a430413e241a7baf3dd632d1ae (diff) | |
download | meta-virtualization-7cea149bb0b510d2fb7fe71eee28d10399d0ceb4.tar.gz |
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 <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/docker/files/0001-cli-use-external-GO111MODULE-and-cross-compiler.patch')
-rw-r--r-- | recipes-containers/docker/files/0001-cli-use-external-GO111MODULE-and-cross-compiler.patch | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
19 | -export GO111MODULE=auto | 19 | -export GO111MODULE=auto |
20 | 20 | ||
21 | -go build -o "${TARGET}" -tags "${GO_BUILDTAGS}" --ldflags "${GO_LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}" | 21 | -go build -o "${TARGET}" -tags "${GO_BUILDTAGS}" --ldflags "${GO_LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}" |
22 | +${GO} build -o "${TARGET}" -tags "${GO_BUILDTAGS}" --ldflags "${GO_LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}" | 22 | +${GO} build -trimpath -o "${TARGET}" -tags "${GO_BUILDTAGS}" --ldflags "${GO_LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}" |
23 | 23 | ||
24 | ln -sf "$(basename "${TARGET}")" "$(dirname "${TARGET}")/docker" | 24 | ln -sf "$(basename "${TARGET}")" "$(dirname "${TARGET}")/docker" |