fix(renovate/mise): unable to lookup github-releases

This commit is contained in:
JJGadgets
2025-05-10 02:18:42 +08:00
parent 0e3bd19d41
commit 50b374f47b

View File

@@ -10,23 +10,12 @@
}
],
"customManagers": [
{
"customType": "regex",
"description": "Process aqua and ubi packages in mise.toml",
"fileMatch": [".mise.toml", "mise.toml"],
"matchStrings": [
"\"?(?:aqua:|ubi:)?(?<packageName>[\\w\\-\\/]+)\"? = \\[?\"(?<currentValue>[\\d\\.]+|latest|v[\\d\\.]+)\""
],
"datasourceTemplate": "github-releases",
"versioningTemplate": "semver",
"extractVersionTemplate": "^v?(?<version>.*)$"
},
{
"customType": "regex",
"description": "Process Go packages in mise.toml",
"fileMatch": [".mise.toml", "mise.toml"],
"matchStrings": [
"\"go:(?<packageName>[\\w\\-\\/\\.]+)\" = \\[?\"(?<currentValue>[\\d\\.]+)\""
"\"go:(?<depName>[\\w\\-\\/\\.]+)\" = \\[?\"(?<currentValue>[\\d\\.]+)\""
],
"datasourceTemplate": "go",
"versioningTemplate": "semver"
@@ -36,7 +25,7 @@
"description": "Process cargo packages in mise.toml",
"fileMatch": [".mise.toml", "mise.toml"],
"matchStrings": [
"\"cargo:(?<packageName>[\\w\\-\\/]+)\" = \\[?\"(?<currentValue>[\\d\\.]+)\""
"\"cargo:(?<depName>[\\w\\-\\/]+)\" = \\[?\"(?<currentValue>[\\d\\.]+)\""
],
"datasourceTemplate": "crate",
"versioningTemplate": "cargo"
@@ -56,10 +45,22 @@
"description": "Process pipx packages in mise.toml",
"fileMatch": [".mise.toml", "mise.toml"],
"matchStrings": [
"\"pipx:(?<packageName>[\\w\\-\\.]+)\" = \\[?\"(?<currentValue>[\\d\\.]+|latest)\""
"\"pipx:(?<depName>[\\w\\-\\.]+)\" = \\[?\"(?<currentValue>[\\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:]])+(?<depName>[\\w\\-\\/]+)\"? = \\[?\"(?<currentValue>[\\d\\.]+|latest|v[\\d\\.]+)\""
],
"datasourceTemplate": "github-releases",
"versioningTemplate": "semver",
"packageNameTemplate": "{{#if (lookup (split depName '/') 1)}}{{depName}}/{{/if}}{{depName}}",
"extractVersionTemplate": "^v?(?<version>.*)$"
}
]
}