Skip to content

Commit 758e76c

Browse files
committed
fixup! fixup! chore: update Go toolchain to 1.25.5
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
1 parent 5f35411 commit 758e76c

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.ci/oci.Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,22 @@
1414
#
1515

1616
FROM registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.24-openshift-4.20
17+
FROM registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.24-openshift-4.20
18+
19+
ENV GO_VERSION=1.25.7
20+
ENV GOROOT=/usr/local/go
21+
ENV PATH=$GOROOT/bin:$PATH
1722

1823
SHELL ["/bin/bash", "-c"]
1924

25+
# Install Go 1.25.7 to satisfy go.mod toolchain requirement (go 1.25.0)
26+
RUN export ARCH="$(uname -m)" && if [[ ${ARCH} == "x86_64" ]]; then export ARCH="amd64"; elif [[ ${ARCH} == "aarch64" ]]; then export ARCH="arm64"; fi && \
27+
curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-${ARCH}.tar.gz" -o go.tar.gz && \
28+
rm -rf /usr/local/go && \
29+
tar -C /usr/local -xzf go.tar.gz && \
30+
rm go.tar.gz
31+
RUN go version
32+
2033
# Temporary workaround since mirror.centos.org is down and can be replaced with vault.centos.org
2134
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
2235

0 commit comments

Comments
 (0)