Skip to content

Commit dcca61d

Browse files
committed
Temporarily apply upstream patch for 1.18 + Alpine + ppc64le
1 parent a118a7e commit dcca61d

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

1.18/alpine3.14/Dockerfile

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

1.18/alpine3.15/Dockerfile

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile-linux.template

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,16 @@ RUN set -eux; \
134134
go \
135135
musl-dev \
136136
; \
137+
{{ if env.version == "1.18" then ( -}}
138+
if [ "$GOARCH" = 'ppc64le' ]; then \
139+
# https://github.com/golang/go/issues/51787
140+
wget -O ppc64le-alpine.patch 'https://github.com/golang/go/commit/946167906ed8646c433c257b074a10e01f0a7dab.patch'; \
141+
apk add --no-cache --virtual .build-patch patch; \
142+
patch --strip=1 --input="$PWD/ppc64le-alpine.patch" --directory=/usr/local/go; \
143+
apk del --no-network .build-patch; \
144+
rm ppc64le-alpine.patch; \
145+
fi; \
146+
{{ ) else "" end -}}
137147
{{ ) else ( -}}
138148
savedAptMark="$(apt-mark showmanual)"; \
139149
apt-get update; \

0 commit comments

Comments
 (0)