Skip to content

Commit 935f318

Browse files
authored
GH-47673: [CI][Integration] Fix Go build failure (#47674)
### Rationale for this change Our latest Go version detection is broken. It doesn't detect the latest version. It caused Apache Arrow Go install failure. ### What changes are included in this PR? Use conda to install Go. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: #47673 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
1 parent 13c2615 commit 935f318

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

ci/docker/conda-integration.dockerfile

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ RUN mamba install -q -y \
3737
"python < 3.12" \
3838
numpy \
3939
compilers \
40+
go \
4041
maven=${maven} \
4142
nodejs=${node} \
4243
yarn=${yarn} \
@@ -49,25 +50,6 @@ RUN mamba install -q -y \
4950
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile=minimal -y && \
5051
$HOME/.cargo/bin/rustup component add rustfmt
5152

52-
ENV GOROOT=/opt/go \
53-
GOBIN=/opt/go/bin \
54-
GOPATH=/go \
55-
PATH=/opt/go/bin:$PATH
56-
# Use always latest go
57-
RUN wget -nv -O - https://dl.google.com/go/go$( \
58-
curl \
59-
--fail \
60-
--location \
61-
--show-error \
62-
--silent \
63-
https://api.github.com/repos/golang/go/git/matching-refs/tags/go | \
64-
grep -o '"ref": "refs/tags/go.*"' | \
65-
tail -n 1 | \
66-
sed \
67-
-e 's,^"ref": "refs/tags/go,,g' \
68-
-e 's/"$//g' \
69-
).linux-${arch}.tar.gz | tar -xzf - -C /opt
70-
7153
ENV DOTNET_ROOT=/opt/dotnet \
7254
PATH=/opt/dotnet:$PATH
7355
RUN curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -Channel 8.0 -InstallDir /opt/dotnet

0 commit comments

Comments
 (0)