From f4b31d13f3857d4790de6b2694b2061bf3536c9b Mon Sep 17 00:00:00 2001 From: Erin Millard Date: Thu, 21 Nov 2024 11:10:47 +1000 Subject: [PATCH] feat(manager/asdf): add asdf protoc support --- lib/modules/manager/asdf/extract.spec.ts | 8 ++++++++ lib/modules/manager/asdf/upgradeable-tooling.ts | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/lib/modules/manager/asdf/extract.spec.ts b/lib/modules/manager/asdf/extract.spec.ts index 78dfb20a7363c9..060ea57b661ed9 100644 --- a/lib/modules/manager/asdf/extract.spec.ts +++ b/lib/modules/manager/asdf/extract.spec.ts @@ -107,6 +107,7 @@ php 8.1.12 pnpm 7.26.2 poetry 1.3.2 pre-commit 3.3.1 +protoc 28.3 pulumi 3.57.1 python 3.11.0 rebar 3.23.0 @@ -559,6 +560,13 @@ dummy 1.2.3 depName: 'pre-commit', extractVersion: '^v(?.+)', }, + { + currentValue: '28.3', + datasource: 'github-releases', + packageName: 'protocolbuffers/protobuf', + depName: 'protoc', + extractVersion: '^v(?\\S+)', + }, { currentValue: '3.57.1', datasource: 'github-releases', diff --git a/lib/modules/manager/asdf/upgradeable-tooling.ts b/lib/modules/manager/asdf/upgradeable-tooling.ts index 0a5f371c43a10f..3ddd0b3c466252 100644 --- a/lib/modules/manager/asdf/upgradeable-tooling.ts +++ b/lib/modules/manager/asdf/upgradeable-tooling.ts @@ -589,6 +589,14 @@ export const upgradeableTooling: Record = { extractVersion: '^v(?.+)', }, }, + protoc: { + asdfPluginUrl: 'https://github.com/paxosglobal/asdf-protoc.git', + config: { + datasource: GithubReleasesDatasource.id, + packageName: 'protocolbuffers/protobuf', + extractVersion: '^v(?\\S+)', + }, + }, pulumi: { asdfPluginUrl: 'https://github.com/canha/asdf-pulumi.git', config: {