Skip to content

Commit

Permalink
Use always latest go
Browse files Browse the repository at this point in the history
  • Loading branch information
raulcd committed Sep 18, 2024
1 parent 793d0eb commit 3d2516d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions ci/docker/conda-integration.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ ARG maven=3.8.7
ARG node=16
ARG yarn=1.22
ARG jdk=11
ARG go=1.22.6

# Install Archery and integration dependencies
COPY ci/conda_env_archery.txt /arrow/ci/
Expand Down Expand Up @@ -54,7 +53,20 @@ ENV GOROOT=/opt/go \
GOBIN=/opt/go/bin \
GOPATH=/go \
PATH=/opt/go/bin:$PATH
RUN wget -nv -O - https://dl.google.com/go/go${go}.linux-${arch}.tar.gz | tar -xzf - -C /opt
# Use always latest go
RUN wget -nv -O - https://dl.google.com/go/go$( \
curl \
--fail \
--location \
--show-error \
--silent \
https://api.github.com/repos/golang/go/git/matching-refs/tags/go | \
grep -o '"ref": "refs/tags/go.*"' | \
tail -n 1 | \
sed \
-e 's,^"ref": "refs/tags/go,,g' \
-e 's/"$//g' \
).linux-${arch}.tar.gz | tar -xzf - -C /opt

ENV DOTNET_ROOT=/opt/dotnet \
PATH=/opt/dotnet:$PATH
Expand Down

0 comments on commit 3d2516d

Please sign in to comment.