Is there a way to ignore a dependency at specific line with a comment? #26125
-
How are you running Renovate?Mend Renovate hosted app on github.com What is your question?I'm using Gradle Kotlin DSL, and I would like to ignore certain version because I have several declarations of the same library, and I do not want Renovate to touch one of them. The other should be maintained as usual. I tried adding
I tried several workarounds in Logs (if relevant)the relevant part of system-stubs-jupiter 1.2.0 in the log {
"currentValue": "1.2.0",
"currentVersion": "1.2.0",
"datasource": "maven",
"depName": "uk.org.webcompere:system-stubs-jupiter",
"depType": "dependencies",
"fileReplacePosition": 537,
"fixedVersion": "1.2.0",
"isSingleVersion": true,
"managerData": {
"fileReplacePosition": 537,
"packageFile": "build-logic/jvm/src/main/kotlin/build-logic.test-junit5.gradle.kts"
},
"packageName": "uk.org.webcompere:system-stubs-jupiter",
"registryUrls": [
"https://repo.maven.apache.org/maven2",
"https://plugins.gradle.org/m2/"
],
"sourceUrl": "https://github.com/webcompere/system-stubs",
"versioning": "gradle",
"warnings": [],
"updates": [
{
"bucket": "major",
"newVersion": "2.1.5",
"newValue": "2.1.5",
"releaseTimestamp": "2023-11-12T16:11:35.000Z",
"registryUrl": "https://repo.maven.apache.org/maven2",
"newMajor": 2,
"newMinor": 1,
"updateType": "major",
"branchName": "renovate/major-uk.org.webcompere"
}
]
},
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi there, This issue or discussion is missing some logs, making it difficult or impossible to help you. Depending on which situation applies follow one, some or all of these instructions. No logs at allIf you haven't posted any log yet, we need you to find and copy/paste the log into the issue template. Finding logs on hosted appSelect me to read instructionsIf you use the Renovate app (GitHub):
Finding logs when self-hostingSelect me to read instructionsIf you're running self-hosted, run with Insufficient logsSelect me to read instructionsIf you already gave us a log, and the Renovate team said it's not enough, then follow the instructions from the No logs at all section. Formatting your logsSelect me to read instructionsPlease put your logs in a
Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Look for their entries in |
Beta Was this translation helpful? Give feedback.
-
I was able to workaround the issue with the following: {
"matchPackageNames": ["uk.org.webcompere:system-stubs-jupiter"],
"groupName": "system-stubs-jupiter",
"matchCurrentVersion": "< 2.0",
"enabled": false
}, |
Beta Was this translation helpful? Give feedback.
-
Here is a complete renovate.json how I ignored them
|
Beta Was this translation helpful? Give feedback.
-
I'd still like to have that option, extending the renovate config is a little cumbersome in comparison to a comment on that line :) |
Beta Was this translation helpful? Give feedback.
I was able to workaround the issue with the following: