Open rarkins opened 10 months ago
Happy to give a try at implementing this if someone can guide me in the right direction.
In the meantime, the current docs should be updated to include SBT in the unsupported list: https://docs.renovatebot.com/configuration-options/#replacementname
I searched the code for replacementName and unfortunately I'm not finding any custom replacements. For example maven is not supported.
We may need to add some maven-awareness to the autoreplace function, e.g. instead of searching for the packageName
string in full, we split it into group and package parts and then search for something like groupPart.*?packagePart
and then replace them separately if found
Indeed, if this is not implemented for any other manager yet, this sounds like a bit of work.
Should SBT also be listed here...?
Discussed in https://github.com/renovatebot/renovate/discussions/25637
Logs
``` "sbt": [ { "deps": [ { "datasource": "sbt-plugin", "depName": "com.typesafe.play:sbt-plugin", "packageName": "com.typesafe.play:sbt-plugin", "currentValue": "2.9.0", "depType": "plugin", "registryUrls": [ "https://repo.maven.apache.org/maven2", "https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases" ], "updates": [ { "updateType": "replacement", "newName": "org.playframework:sbt-plugin", "newValue": "3.0.0", "branchName": "renovate/com.typesafe.play-sbt-plugin-replacement" } ], "versioning": "ivy", "warnings": [], "sourceUrl": "https://github.com/playframework/playframework", "registryUrl": "https://repo.maven.apache.org/maven2", "dependencyUrl": "https://repo.maven.apache.org/maven2/com/typesafe/play/sbt-plugin", "currentVersion": "2.9.0", "fixedVersion": "2.9.0" } ], "packageFile": "project/plugins.sbt" } ] } ... INFO: Cannot find replaceString in current file content. Was it already updated? (branch="renovate/com.typesafe.play-sbt-plugin-replacement") { "packageFile": "project/plugins.sbt" "depName": "com.typesafe.play:sbt-plugin" "existingContent": "\naddSbtPlugin(\"com.typesafe.play\" % \"sbt-plugin\" % \"2.9.0\")\n" "replaceString": "2.9.0" } DEBUG: No content changed (branch="renovate/com.typesafe.play-sbt-plugin-replacement") { "packageFile": "project/plugins.sbt" "depName": "com.typesafe.play:sbt-plugin" } ```