Problem with "a special PR that replaces org.slf4j:slf4j-log4j12" #34027
Replies: 5 comments 13 replies
-
Looking through the logs it seems the new name of the package is found, mentioned in the title, but never actually used in a proposed code change. |
Beta Was this translation helpful? Give feedback.
-
The replacement update includes all needed infos but the actual values update failed, which is why renovate attempts it again (and again). Logs that you didn't include show this: DEBUG: Unknown value (repository=nielsbasjes/energy, branch=renovate/all)
"content": "[content]",
"nodeName": "groupId",
"oldValue": "org.slf4j",
"newValue": "org.slf4j"
DEBUG: Unknown value (repository=nielsbasjes/energy, branch=renovate/all)
"content": "[content]",
"nodeName": "artifactId",
"oldValue": "slf4j-log4j12",
"newValue": "slf4j-reload4j" which was introduced last week with PR #32635 : renovate/lib/modules/manager/maven/update.ts Line 198 in f7dcb3c I guess this could be related to the use of maven properties 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. Please follow these steps:
If you need help with running renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Converted to issue: #34088 |
Beta Was this translation helpful? Give feedback.
-
I attempted this package rule in an attempt to disable such replacements: packageRules: [{
description: "Disable maven replacements where a shared variable name is in use",
matchJsonata: "updateType = 'replacement' and manager = 'maven' and $exists(sharedVariableName)",
enabled: false,
}], But I'm not sure if it disabled too much, and I don't have time to debug further |
Beta Was this translation helpful? Give feedback.
-
How are you running Renovate?
A Mend.io-hosted app
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 problem
I got this Renovate update nielsbasjes/energy#343 which mentions several changes; I merged this.
At the time of merge I saw that one is a replacement of org.slf4j:slf4j-log4j12 ... however I failed to notice this replacement is NOT part of the committed changes.
Then I got nielsbasjes/energy#344 which in the message again said the org.slf4j:slf4j-log4j12 ... which I merged.
Now looking at the actual commits it is really weird because the commits show the actual changes from the previous one and still do not contain the org.slf4j:slf4j-log4j12 change.
The commit hash of both of these merge requests is identical!
And then ... I got nielsbasjes/energy#345 ... which is the same thing again.
What is going wrong here?
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions