From 213c09ebf833d2bd48f54d59859d63aa690bea40 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Thu, 2 May 2024 06:05:04 -0700 Subject: [PATCH] Keep go.mod toolchain version in sync with .go-version contents (#4636) --- .ci/bump-golang.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.ci/bump-golang.yml b/.ci/bump-golang.yml index 470c6f4c8d5..5d51f9d5895 100644 --- a/.ci/bump-golang.yml +++ b/.ci/bump-golang.yml @@ -123,8 +123,8 @@ targets: - Dockerfile - Dockerfile.skaffold matchpattern: 'ARG GO_VERSION=\d+.\d+.\d+' - update-gomod: - name: "Update go.mod" + update-gomod-minor-version: + name: "Update go.mod minor version" sourceid: gomod scmid: githubConfig kind: file @@ -132,3 +132,12 @@ targets: content: 'go {{ source "gomod" }}' file: go.mod matchpattern: 'go \d+.\d+' + update-gomod-toolchain-version: + name: "Update go.mod toolchain version" + sourceid: latestGoVersion + scmid: githubConfig + kind: file + spec: + content: 'toolchain go{{ source "latestGoVersion" }}' + file: go.mod + matchpattern: 'toolchain go\d+.\d+.\d+'