diff options
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 | 13 |
1 files changed, 10 insertions, 3 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 3814a0c2..26f5aad4 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 | |||
@@ -14,13 +14,20 @@ Index: git/cli/scripts/build/binary | |||
14 | =================================================================== | 14 | =================================================================== |
15 | --- git.orig/cli/scripts/build/binary | 15 | --- git.orig/cli/scripts/build/binary |
16 | +++ git/cli/scripts/build/binary | 16 | +++ git/cli/scripts/build/binary |
17 | @@ -73,8 +73,7 @@ | 17 | @@ -13,8 +13,6 @@ |
18 | 18 | ||
19 | echo "Building $GO_LINKMODE $(basename "${TARGET}")" | 19 | echo "Building $GO_LINKMODE $(basename "${TARGET}")" |
20 | 20 | ||
21 | -export GO111MODULE=auto | 21 | -export GO111MODULE=auto |
22 | - | ||
23 | if [ "$(go env GOOS)" = "windows" ]; then | ||
24 | if [ ! -x "$(command -v goversioninfo)" ]; then | ||
25 | >&2 echo "goversioninfo not found, skipping manifesting binary" | ||
26 | @@ -24,6 +22,6 @@ | ||
27 | fi | ||
28 | fi | ||
22 | 29 | ||
23 | -go build -o "${TARGET}" -tags "${GO_BUILDTAGS}" --ldflags "${GO_LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}" | 30 | -(set -x ; go build -o "${TARGET}" -tags "${GO_BUILDTAGS}" -ldflags "${GO_LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}") |
24 | +${GO} build -trimpath -o "${TARGET}" -tags "${GO_BUILDTAGS}" --ldflags "${GO_LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}" | 31 | +(set -x ; ${GO} build -trimpath -o "${TARGET}" -tags "${GO_BUILDTAGS}" -ldflags "${GO_LDFLAGS}" ${GO_BUILDMODE} "${SOURCE}") |
25 | 32 | ||
26 | ln -sf "$(basename "${TARGET}")" "$(dirname "${TARGET}")/docker" | 33 | ln -sf "$(basename "${TARGET}")" "$(dirname "${TARGET}")/docker" |