linl33 commented on code in PR #4899: URL: https://github.com/apache/arrow-adbc/pull/4899#discussion_r4291669164
########## ci/linux-packages/yum/almalinux-10/Dockerfile: ########## @@ -47,7 +47,16 @@ RUN \ ARG GO_VERSION -RUN wget --no-verbose https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz && \ - tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz && \ - rm go${GO_VERSION}.linux-amd64.tar.gz +ARG TARGETPLATFORM +RUN if [[ ${TARGETPLATFORM} == "linux/amd64" ]]; then \ + ARCH="amd64"; \ + elif [[ ${TARGETPLATFORM} == "linux/arm64" ]]; then \ + ARCH="arm64"; \ + else \ + echo "Unsupported platform: ${TARGETPLATFORM}"; \ + exit 1; \ + fi && \ Review Comment: I replaced it with `arch`. `TARGETPLATFORM` is just a build arg docker populates. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
