From 2bbeea1b60e34ab9fe5072d7fdab29538692ff9e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 20 Aug 2024 17:13:34 +0200 Subject: [PATCH] fix: use more flexible opentofu required_version pattern --- opentofu.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/opentofu.json b/opentofu.json index 08fd83e..f5a2b66 100644 --- a/opentofu.json +++ b/opentofu.json @@ -12,13 +12,9 @@ "customManagers": [ { "customType": "regex", - "fileMatch": [ - "^terraform/.+\\.tf$", - "^.woodpecker/.+\\.ya?ml$", - "^.drone.ya?ml$" - ], + "fileMatch": ["^terraform/.+.tf$", "^.woodpecker.ya?ml$"], "matchStrings": [ - "required_version = \"?= (?.*?)\"?\\s", + "required_version = \"?([=><\\s]+)?(?[^\"]+)\"?", "tofu_version: \"?(?.*?)\"?\\s" ], "datasourceTemplate": "github-releases",