Skip to content

Commit dd71281

Browse files
authored
chore: update Go to 1.25.7 (#1574)
* chore: update Go toolchain to 1.25.3 Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com> * chore: update Go toolchain to 1.25.5 Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com> * fixup! chore: update Go toolchain to 1.25.5 Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com> * fixup! fixup! chore: update Go toolchain to 1.25.5 Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com> * fixup! fixup! fixup! chore: update Go toolchain to 1.25.5 Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com> * fixup! fixup! fixup! fixup! chore: update Go toolchain to 1.25.5 Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com> --------- Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
1 parent 3c338a3 commit dd71281

File tree

8 files changed

+17
-9
lines changed

8 files changed

+17
-9
lines changed

.ci/oci.Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,20 @@ ENV GO_VERSION=1.25.7
1919
ENV GOROOT=/usr/local/go
2020
ENV PATH=$GOROOT/bin:$PATH
2121

22+
ENV GO_VERSION=1.25.7
23+
ENV GOROOT=/usr/local/go
24+
ENV PATH=$GOROOT/bin:$PATH
25+
2226
SHELL ["/bin/bash", "-c"]
2327

2428
# Install Go 1.25.7 to satisfy go.mod toolchain requirement (go 1.25.0)
2529
RUN export ARCH="$(uname -m)" && if [[ ${ARCH} == "x86_64" ]]; then export ARCH="amd64"; elif [[ ${ARCH} == "aarch64" ]]; then export ARCH="arm64"; fi && \
2630
curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-${ARCH}.tar.gz" -o go.tar.gz && \
2731
rm -rf /usr/local/go && \
2832
tar -C /usr/local -xzf go.tar.gz && \
29-
rm go.tar.gz
33+
rm go.tar.gz && \
34+
ln -sf /usr/local/go/bin/go /usr/bin/go.real && \
35+
ln -sf /usr/local/go/bin/gofmt /usr/bin/gofmt
3036
RUN go version
3137

3238
# Temporary workaround since mirror.centos.org is down and can be replaced with vault.centos.org

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: Set up Go 1.x
1515
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
1616
with:
17-
go-version: 1.24.6
17+
go-version: 1.25.7
1818
-
1919
name: Set up Python 3.11
2020
uses: actions/setup-python@b64ffcaf5b410884ad320a9cfac8866006a109aa # v4.8.0

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: Set up Go 1.x
1616
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
1717
with:
18-
go-version: 1.24.6
18+
go-version: 1.25.7
1919
-
2020
name: Set up Python 3.11
2121
uses: actions/setup-python@b64ffcaf5b410884ad320a9cfac8866006a109aa # v4.8.0

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Set up Go 1.x
3333
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
3434
with:
35-
go-version: 1.23.6
35+
go-version: 1.25.7
3636
- name: Set up QEMU
3737
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 #v2.2.0
3838

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Detailed instructions regarding the DevWorkspace Operator development are provid
4646

4747
To build, test and debug the DevWorkspace Operator the following development tools are required:
4848

49-
- go 1.16 or later
49+
- go 1.25 or later
5050
- git
5151
- sed
5252
- jq

build/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
# https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/ubi9/go-toolset
1717
# Use BUILDPLATFORM to ensure the builder always runs natively on the host machine
18-
FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9/go-toolset:1.24.6-1758501173 AS builder
18+
# Image pinned by SHA256 to address GitHub security bot warnings about unpinned dependencies
19+
FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9/go-toolset:1.25.7-1771417345@sha256:799cc027d5ad58cdc156b65286eb6389993ec14c496cf748c09834b7251e78dc AS builder
1920

2021
# Accept TARGETARCH and TARGETPLATFORM, which are automatically passed by the builder
2122
ARG TARGETARCH

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/devfile/devworkspace-operator
22

3-
go 1.24.0
3+
go 1.25.0
44

5-
toolchain go1.24.6
5+
toolchain go1.25.7
66

77
require (
88
github.com/devfile/api/v2 v2.3.1-alpha.0.20250521155908-5c3d7b99d252

project-clone/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
# Build the manager binary
1717
# https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/ubi9/go-toolset
18-
FROM registry.access.redhat.com/ubi9/go-toolset:1.24.6-1758501173 as builder
18+
# Image pinned by SHA256 to address GitHub security bot warnings about unpinned dependencies
19+
FROM registry.access.redhat.com/ubi9/go-toolset:1.25.7-1771417345@sha256:799cc027d5ad58cdc156b65286eb6389993ec14c496cf748c09834b7251e78dc as builder
1920
ARG TARGETARCH
2021
ARG TARGETOS
2122
ENV GOPATH=/go/

0 commit comments

Comments
 (0)