From d265e5eafa9b632f3c7c49cce49b07255f48af74 Mon Sep 17 00:00:00 2001 From: Patrick Decat <patrick.decat@fr.clara.net> Date: Fri, 2 Feb 2024 06:01:33 +0100 Subject: [PATCH] feat(asdf): add support for opentofu (#26989) --- 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 54e205adc7..ec528331a5 100644 --- a/lib/modules/manager/asdf/extract.spec.ts +++ b/lib/modules/manager/asdf/extract.spec.ts @@ -88,6 +88,7 @@ mimirtool 2.11.0 nim 1.6.8 nodejs 18.12.0 ocaml 4.14.0 +opentofu 1.6.0 perl 5.37.5 php 8.1.12 pnpm 7.26.2 @@ -412,6 +413,13 @@ dummy 1.2.3 packageName: 'ocaml/ocaml', depName: 'ocaml', }, + { + currentValue: '1.6.0', + datasource: 'github-releases', + packageName: 'opentofu/opentofu', + depName: 'opentofu', + extractVersion: '^v(?<version>\\S+)', + }, { currentValue: '5.37.5', datasource: 'github-tags', diff --git a/lib/modules/manager/asdf/upgradeable-tooling.ts b/lib/modules/manager/asdf/upgradeable-tooling.ts index c040f921b0..0a1a5e4b16 100644 --- a/lib/modules/manager/asdf/upgradeable-tooling.ts +++ b/lib/modules/manager/asdf/upgradeable-tooling.ts @@ -421,6 +421,14 @@ export const upgradeableTooling: Record<string, ToolingDefinition> = { packageName: 'ocaml/ocaml', }, }, + opentofu: { + asdfPluginUrl: 'https://github.com/virtualroot/asdf-opentofu', + config: { + datasource: GithubReleasesDatasource.id, + packageName: 'opentofu/opentofu', + extractVersion: '^v(?<version>\\S+)', + }, + }, perl: { asdfPluginUrl: 'https://github.com/ouest/asdf-perl', config: { -- GitLab