From ece0884450a63af1d90e66cbd7cc62e48e8b78d1 Mon Sep 17 00:00:00 2001 From: Samir Gurav Date: Fri, 29 Sep 2023 16:32:52 -0400 Subject: [PATCH] Upgrade Golang version to v1.20 Signed-off-by: Samir Gurav --- go.mod | 2 +- scripts/build_funcs.sh | 2 +- test/integration/testImage/Dockerfile | 2 +- test/integration/testImage/src/go.mod | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 18ee6b708..08d8b75ec 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/vmware-tanzu/sonobuoy -go 1.19 +go 1.20 require ( github.com/briandowns/spinner v1.19.0 diff --git a/scripts/build_funcs.sh b/scripts/build_funcs.sh index d13ccf89a..137b16157 100755 --- a/scripts/build_funcs.sh +++ b/scripts/build_funcs.sh @@ -28,7 +28,7 @@ IMAGE_BRANCH=$(git rev-parse --abbrev-ref HEAD | sed 's/\///g') GIT_REF_LONG=$(git rev-parse --verify HEAD) BUILDMNT=/go/src/$GOTARGET -BUILD_IMAGE=golang:1.19 +BUILD_IMAGE=golang:1.20 AMD_IMAGE=gcr.io/distroless/static:nonroot ARM_IMAGE=gcr.io/distroless/static:nonroot-arm64 PPC64LE_IMAGE=gcr.io/distroless/static:nonroot-ppc64le diff --git a/test/integration/testImage/Dockerfile b/test/integration/testImage/Dockerfile index 3d010ae19..8b267aca0 100644 --- a/test/integration/testImage/Dockerfile +++ b/test/integration/testImage/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.19 AS base +FROM golang:1.20 AS base WORKDIR /src # Handle the go modules first to take advantage of Docker cache. diff --git a/test/integration/testImage/src/go.mod b/test/integration/testImage/src/go.mod index 6d699bbbc..478e9d5aa 100644 --- a/test/integration/testImage/src/go.mod +++ b/test/integration/testImage/src/go.mod @@ -1,6 +1,6 @@ module github.com/vmware-tanzu/sonobuoy/test/integration/testImage/src -go 1.19 +go 1.20 require ( github.com/pkg/errors v0.8.1