From b7d0f668f1cb5355791f1d27b151cc26528842b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wenkai=20Yin=28=E5=B0=B9=E6=96=87=E5=BC=80=29?= Date: Fri, 19 Apr 2024 15:52:45 +0800 Subject: [PATCH] Bump up the version of Golang to 1.22 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bump up the version of Golang to 1.22 Signed-off-by: Wenkai Yin(尹文开) --- .github/workflows/pr.yaml | 2 +- .github/workflows/push.yml | 2 +- Dockerfile | 2 +- go.mod | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 849ead9..5af2929 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -10,7 +10,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: '1.21.6' + go-version: '1.22' id: go - name: Check out the code diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 862f9f3..f498e90 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: '1.21.6' + go-version: '1.22' id: go - name: Check out code into the Go module directory diff --git a/Dockerfile b/Dockerfile index 9290f2a..2698ffe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM --platform=$BUILDPLATFORM golang:1.21.6-bookworm AS build +FROM --platform=$BUILDPLATFORM golang:1.22-bookworm AS build ARG TARGETOS ARG TARGETARCH diff --git a/go.mod b/go.mod index a7fccc1..ea916f7 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/vmware-tanzu/velero-plugin-for-microsoft-azure -go 1.21 - -toolchain go1.21.6 +go 1.22 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.10.0