From 41fff7ec176c72c2cdea1cbdcd5caa71acf71a0d Mon Sep 17 00:00:00 2001 From: David Kwon Date: Fri, 2 May 2025 23:19:38 -0400 Subject: [PATCH] Update project to go 1.23 (#1424) Signed-off-by: David Kwon --- .ci/oci.Dockerfile | 2 +- .github/workflows/code-coverage.yml | 2 +- .github/workflows/pr.yml | 2 +- .github/workflows/release.yml | 2 +- build/Dockerfile | 2 +- go.mod | 4 +--- project-clone/Dockerfile | 2 +- 7 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.ci/oci.Dockerfile b/.ci/oci.Dockerfile index 061f9e241..bc06ff84c 100644 --- a/.ci/oci.Dockerfile +++ b/.ci/oci.Dockerfile @@ -13,7 +13,7 @@ # limitations under the License. # -FROM registry.ci.openshift.org/openshift/release:golang-1.22 +FROM registry.ci.openshift.org/openshift/release:golang-1.23 SHELL ["/bin/bash", "-c"] diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index f810d8143..33c105ede 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -14,7 +14,7 @@ jobs: name: Set up Go 1.x uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: 1.22.10 + go-version: 1.23.6 - name: Set up Python 3.11 uses: actions/setup-python@b64ffcaf5b410884ad320a9cfac8866006a109aa # v4.8.0 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e399ad1ea..4530ac7ad 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -15,7 +15,7 @@ jobs: name: Set up Go 1.x uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: 1.22.10 + go-version: 1.23.6 - name: Set up Python 3.11 uses: actions/setup-python@b64ffcaf5b410884ad320a9cfac8866006a109aa # v4.8.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 095e4149e..8872cb771 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: 1.22.10 + go-version: 1.23.6 - name: Set up QEMU uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 #v2.2.0 diff --git a/build/Dockerfile b/build/Dockerfile index 10e1dad6b..06595299f 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -14,7 +14,7 @@ # # https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/ubi9/go-toolset -FROM registry.access.redhat.com/ubi9/go-toolset:9.5-1739267472 as builder +FROM registry.access.redhat.com/ubi9/go-toolset:1.23.6-1745328278 as builder ENV GOPATH=/go/ USER root WORKDIR /devworkspace-operator diff --git a/go.mod b/go.mod index f11d0ea86..83008dfbe 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/devfile/devworkspace-operator -go 1.22 - -toolchain go1.22.0 +go 1.23.0 require ( github.com/devfile/api/v2 v2.2.2 diff --git a/project-clone/Dockerfile b/project-clone/Dockerfile index 5bfd4a4e7..d48e30fde 100644 --- a/project-clone/Dockerfile +++ b/project-clone/Dockerfile @@ -15,7 +15,7 @@ # Build the manager binary # https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/ubi9/go-toolset -FROM registry.access.redhat.com/ubi9/go-toolset:9.5-1739267472 as builder +FROM registry.access.redhat.com/ubi9/go-toolset:1.23.6-1745328278 as builder ARG TARGETARCH ARG TARGETOS ENV GOPATH=/go/