From 50b374f47b214ec2f811a69232436a5b00d6eed8 Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Sat, 10 May 2025 02:18:42 +0800 Subject: [PATCH] fix(renovate/mise): unable to lookup github-releases --- .renovate/mise.json5 | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.renovate/mise.json5 b/.renovate/mise.json5 index e6342b84..acf01e5f 100644 --- a/.renovate/mise.json5 +++ b/.renovate/mise.json5 @@ -10,23 +10,12 @@ } ], "customManagers": [ - { - "customType": "regex", - "description": "Process aqua and ubi packages in mise.toml", - "fileMatch": [".mise.toml", "mise.toml"], - "matchStrings": [ - "\"?(?:aqua:|ubi:)?(?[\\w\\-\\/]+)\"? = \\[?\"(?[\\d\\.]+|latest|v[\\d\\.]+)\"" - ], - "datasourceTemplate": "github-releases", - "versioningTemplate": "semver", - "extractVersionTemplate": "^v?(?.*)$" - }, { "customType": "regex", "description": "Process Go packages in mise.toml", "fileMatch": [".mise.toml", "mise.toml"], "matchStrings": [ - "\"go:(?[\\w\\-\\/\\.]+)\" = \\[?\"(?[\\d\\.]+)\"" + "\"go:(?[\\w\\-\\/\\.]+)\" = \\[?\"(?[\\d\\.]+)\"" ], "datasourceTemplate": "go", "versioningTemplate": "semver" @@ -36,7 +25,7 @@ "description": "Process cargo packages in mise.toml", "fileMatch": [".mise.toml", "mise.toml"], "matchStrings": [ - "\"cargo:(?[\\w\\-\\/]+)\" = \\[?\"(?[\\d\\.]+)\"" + "\"cargo:(?[\\w\\-\\/]+)\" = \\[?\"(?[\\d\\.]+)\"" ], "datasourceTemplate": "crate", "versioningTemplate": "cargo" @@ -56,10 +45,22 @@ "description": "Process pipx packages in mise.toml", "fileMatch": [".mise.toml", "mise.toml"], "matchStrings": [ - "\"pipx:(?[\\w\\-\\.]+)\" = \\[?\"(?[\\d\\.]+|latest)\"" + "\"pipx:(?[\\w\\-\\.]+)\" = \\[?\"(?[\\d\\.]+|latest)\"" ], "datasourceTemplate": "pypi", "versioningTemplate": "pep440" + }, + { + "customType": "regex", + "description": "Process aqua and ubi packages in mise.toml", + "fileMatch": [".mise.toml", "mise.toml"], + "matchStrings": [ + "(?:^\"aqua:|^\"ubi:|^[^[:punct:]])+(?[\\w\\-\\/]+)\"? = \\[?\"(?[\\d\\.]+|latest|v[\\d\\.]+)\"" + ], + "datasourceTemplate": "github-releases", + "versioningTemplate": "semver", + "packageNameTemplate": "{{#if (lookup (split depName '/') 1)}}{{depName}}/{{/if}}{{depName}}", + "extractVersionTemplate": "^v?(?.*)$" } ] }