From 257c686a8b82b72f47667e13ea1443b937000351 Mon Sep 17 00:00:00 2001 From: Oleksii Kurinnyi Date: Mon, 23 Feb 2026 14:30:02 +0200 Subject: [PATCH] chore: install Go 1.25.7 Signed-off-by: Oleksii Kurinnyi --- .ci/oci.Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.ci/oci.Dockerfile b/.ci/oci.Dockerfile index efd5de466..ea0a4e305 100644 --- a/.ci/oci.Dockerfile +++ b/.ci/oci.Dockerfile @@ -15,8 +15,20 @@ FROM registry.ci.openshift.org/openshift/release:rhel-9-release-golang-1.24-openshift-4.20 +ENV GO_VERSION=1.25.7 +ENV GOROOT=/usr/local/go +ENV PATH=$GOROOT/bin:$PATH + SHELL ["/bin/bash", "-c"] +# Install Go 1.25.7 to satisfy go.mod toolchain requirement (go 1.25.0) +RUN export ARCH="$(uname -m)" && if [[ ${ARCH} == "x86_64" ]]; then export ARCH="amd64"; elif [[ ${ARCH} == "aarch64" ]]; then export ARCH="arm64"; fi && \ + curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-${ARCH}.tar.gz" -o go.tar.gz && \ + rm -rf /usr/local/go && \ + tar -C /usr/local -xzf go.tar.gz && \ + rm go.tar.gz +RUN go version + # Temporary workaround since mirror.centos.org is down and can be replaced with vault.centos.org 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