From 317895012020854c579af2a6e98af2ec1d8d57dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Martins?= Date: Wed, 3 Jul 2024 17:39:23 +0200 Subject: [PATCH] xxx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Martins --- .github/renovate.json5 | 15 +++------------ images/builder/install-protoplugins.sh | 8 ++++++-- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 38a385487a920..7760999c7e4c8 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -574,17 +574,7 @@ "matchDepNames": [ "grpc/grpc-go" ], - "versioning": "regex:cmd/protoc-gen-go-grpc/v(?\\d+)\\.(?\\d+)\\.(?\\d+)", - "extractVersion": "^google\\.golang\\.org/grpc/cmd/protoc-gen-go-grpc@cmd/protoc-gen-go-grpc/v(?.*)$", - "packageRules": [ - { - "matchDatasources": ["github-releases"], - "matchPackageNames": ["grpc/grpc-go"], - "registryUrls": ["https://github.com/grpc/grpc-go"], - "extractVersion": "^cmd/protoc-gen-go-grpc/v(?.*)$", - "replaceStringTemplate": "go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@{{{newDigest}}}" - } - ] + "versioning": "regex:cmd/protoc-gen-go-grpc/v(?\\d+)\\.(?\\d+)\\.(?\\d+)$", } ], "kubernetes": { @@ -611,7 +601,8 @@ // Note that for GitHub release artifact digests, you likely want to use // github-release-attachments as the datasource here. "# renovate: datasource=(?.*?) depName=(?.*?) digestVersion=(?.*)\\s+.+_sha256.*=\"(?.*)\"", - "# renovate: datasource=(?.*?) depName=(?.*?)\\s.+@(?.*)" + "# renovate: datasource=(?.*?) depName=(?.*?)\\s.+@(?.*)", + "# renovate: datasource=(?.*?) depName=(?.*?)\\s.+_VERSION=(?.*)" ] }, { diff --git a/images/builder/install-protoplugins.sh b/images/builder/install-protoplugins.sh index 031d55c0aba06..e6db595df4fab 100755 --- a/images/builder/install-protoplugins.sh +++ b/images/builder/install-protoplugins.sh @@ -8,8 +8,12 @@ set -o errexit set -o pipefail set -o nounset -# renovate: datasource=github-releases depName=grpc/grpc-go -go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2.0 +# renovate: datasource=github-tags depName=grpc/grpc-go +GRPC_VERSION=cmd/protoc-gen-go-grpc/v1.2.0 + +GRPC_VERSION=${GRPC_VERSION#cmd/protoc-gen-go-grpc/} +go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@${GRPC_VERSION} + # renovate: datasource=github-releases depName=protocolbuffers/protobuf-go go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.31.0 # renovate: datasource=github-releases depName=mfridman/protoc-gen-go-json