Skip to content

Commit fc78e73

Browse files
committed
Fix ppc64le build by disabling CGO for gopls install & arm64 build by changing the name of arch
Signed-off-by: Prabhu K <Prabhu.K@ibm.com>
1 parent 9dc300e commit fc78e73

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

universal/ubi10/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,11 @@ RUN mkdir -p $GOBIN \
157157
&& tar -C /usr/local -xzf /tmp/go.tar.gz \
158158
&& rm -rf /tmp/go.tar.gz \
159159
&& go version \
160-
&& GO111MODULE=on go install golang.org/x/tools/gopls@v0.21.0 \
160+
&& if [ "$TARGETARCH" = "ppc64le" ]; then \
161+
CGO_ENABLED=0 GO111MODULE=on go install golang.org/x/tools/gopls@v0.21.0; \
162+
else \
163+
GO111MODULE=on go install golang.org/x/tools/gopls@v0.21.0; \
164+
fi \
161165
&& chgrp -R 0 /home/tooling \
162166
&& chmod -R g=u /home/tooling
163167

@@ -399,7 +403,7 @@ case "$TARGETARCH" in
399403
TKN_ARCH="Linux_x86_64"
400404
;;
401405
arm64)
402-
TKN_ARCH="Linux_arm64"
406+
TKN_ARCH="Linux_aarch64"
403407
;;
404408
ppc64le)
405409
TKN_ARCH="Linux_ppc64le"

0 commit comments

Comments
 (0)