From f42f6b8615c528c358b57e4322c11b1835ab3705 Mon Sep 17 00:00:00 2001 From: Ido David <36866853+ido-namely@users.noreply.github.com> Date: Tue, 30 Aug 2022 12:19:02 -0500 Subject: [PATCH] Modify where Renovate updates Go (#329) With this change the go version will be updated in the dockerfile as well as in Renovate's own config file (where go version is referenced as a constraint for future upgrades) --- .github/renovate.json5 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 3c9ed18f..56ae2bed 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -143,6 +143,19 @@ ], depNameTemplate: "google.golang.org/grpc/cmd/protoc-gen-go-grpc", datasourceTemplate: "go", + }, + { + fileMatch: [ + "variables.sh$", + ".github/renovate.json5$" + ], + matchStrings: [ + "GO_VERSION=\\$\\{GO_VERSION:-(?.*?)\\}\\n", + "constraints: {(\\s*\\n\\s*)\"go\":\\s*\"(?.*?)\"" + ], + depNameTemplate: "go", + datasourceTemplate: "golang-version", + versioningTemplate: "npm", } ], packageRules: [