CustomManager detects only the last dependency #31208
-
What would you like help with?I think I found a bug How are you running Renovate?Mend Renovate hosted app on github.com If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.No response Please tell us more about your question or problemI am writing a custom manager to watch intellij product releases. The idea is to get the versions from an api call. this needs the idea productcode customDatasources: {
// product codes # curl -s "https://data.services.jetbrains.com/products?release.type=release" | jq '.[] | "\(.code) -> \(.name)"'
jetbrainsProduct: {
defaultRegistryUrlTemplate: "https://data.services.jetbrains.com/products?code={{packageName}}&release.type=release",
"transformTemplates": [
"{\"releases\": $.releases@$release.{ \"version\":$release.version,\"changelogUrl\": $release.notesLink ? $release.notesLink : undefined }, \"homepage\": $.link}"
]
}
} To test this i created a yaml file and added an entry for intellij ultimate # renovate: datasource=custom.jetbrainsProduct depName=IIU versioning=maven
idea_version: "2024.1.4" Renovate opend a PR to upgrade to 2024.2.1 Now i added another entry # renovate: datasource=custom.jetbrainsProduct depName=IIU versioning=maven
idea_version: "2024.1.4"
# renovate: datasource=custom.jetbrainsProduct depName=PS versioning=maven
php_storm_version: 2023.1.2 renovate autoclosed the PR for IIU and opend pullrequests for PS The dependency dashboard only lists PS as dependency. Did I missconfigured anything or is this a bug? Repository is available at https://github.com/P1tt187/renovate-idea-custom-manager Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I seem to recall that the regex engine sometimes sticks with the largest match. Would you try using |
Beta Was this translation helpful? Give feedback.
I seem to recall that the regex engine sometimes sticks with the largest match. Would you try using
[a-z_]+_version
or similar instead of.*?_version
?