diff --git a/Dockerfile b/Dockerfile index a994d83ed5..0a04da5474 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ # limitations under the License. # Build the manager binary -ARG GOLANG_VERSION=golang:1.19.13 +ARG GOLANG_VERSION=golang:1.20.8 FROM --platform=${BUILDPLATFORM} ${GOLANG_VERSION} as builder WORKDIR /workspace diff --git a/Makefile b/Makefile index 80d42f4625..aef7a11703 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ SHELL:=/usr/bin/env bash # # Go. # -GO_VERSION ?= 1.19.13 +GO_VERSION ?= 1.20.8 GO_CONTAINER_IMAGE ?= docker.io/library/golang:$(GO_VERSION) # Use GOPROXY environment variable if set diff --git a/go.mod b/go.mod index 2cb0eb50a8..64287177d6 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/vmware-tanzu/vm-operator/api v0.0.0-20221204041501-ec03d8bb733c github.com/vmware-tanzu/vm-operator/external/ncp v0.0.0-20211209213435-0f4ab286f64f github.com/vmware-tanzu/vm-operator/external/tanzu-topology v0.0.0-20211209213435-0f4ab286f64f - github.com/vmware/govmomi v0.30.2 + github.com/vmware/govmomi v0.30.7 golang.org/x/crypto v0.11.0 golang.org/x/exp v0.0.0-20221002003631-540bb7301a08 golang.org/x/mod v0.8.0 diff --git a/hack/ensure-go.sh b/hack/ensure-go.sh index 37cad486c6..a09074f173 100755 --- a/hack/ensure-go.sh +++ b/hack/ensure-go.sh @@ -19,7 +19,7 @@ set -o nounset set -o pipefail # MIN_GO_VERSION is the minimum, supported Go version. -MIN_GO_VERSION="go${MIN_GO_VERSION:-1.19.13}" +MIN_GO_VERSION="go${MIN_GO_VERSION:-1.20}" # Ensure the go tool exists and is a viable version. verify_go_version() {