From 44d61a97b389cb157c2c99bf0ca7c2b59cb27c65 Mon Sep 17 00:00:00 2001 From: Miguel Duarte Barroso Date: Thu, 26 Oct 2023 09:43:33 +0200 Subject: [PATCH] build: use golang 1.20 Signed-off-by: Miguel Duarte Barroso --- automation/check-patch.setup.sh | 4 ++-- cmd/Dockerfile | 2 +- go.mod | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/automation/check-patch.setup.sh b/automation/check-patch.setup.sh index 66746249..4b7867c6 100644 --- a/automation/check-patch.setup.sh +++ b/automation/check-patch.setup.sh @@ -12,8 +12,8 @@ export PATH=${GOPATH}/bin:${GOROOT}/bin:${PATH} export GOBIN=${GOROOT}/bin/ mkdir -p $GOBIN -echo 'Install Go 1.19' -export GIMME_GO_VERSION=1.19 +echo 'Install Go 1.20' +export GIMME_GO_VERSION=1.20 GIMME=/tmp/macvtap-cni/go/gimme mkdir -p $GIMME curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | HOME=${GIMME} bash >> ${GIMME}/gimme.sh diff --git a/cmd/Dockerfile b/cmd/Dockerfile index 77f67a30..50c52c2e 100644 --- a/cmd/Dockerfile +++ b/cmd/Dockerfile @@ -1,6 +1,6 @@ # Multi-stage dockerfile building a container image with both binaries included -FROM quay.io/projectquay/golang:1.19 as builder +FROM quay.io/projectquay/golang:1.20 as builder ENV GOPATH=/go WORKDIR /go/src/github.com/kubevirt/macvtap-cni COPY . . diff --git a/go.mod b/go.mod index 6b058909..f0d85721 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/kubevirt/macvtap-cni -go 1.19 +go 1.20 require ( github.com/aktau/github-release v0.8.1