Closed keyute closed 1 year ago
Hi there,
Help us by making a minimal reproduction repository.
Before we can start work on your issue we first need to know exactly what's causing the current behavior. A minimal reproduction helps us with this.
To get started, please read our guide on creating a minimal reproduction to understand what is needed.
We may close the issue if you (or someone else) have not provided a minimal reproduction within two weeks. If you need more time, or are stuck, please ask for help or more time in a comment.
Good luck,
The Renovate team
Repository can be found here: https://github.com/keyute/renovate-issue
Confirmed reproducible via your hosted dashboard.
Hi, you mention "Renovate looks up maven-metadata.xml at the wrong path" but could you provide more details about what you think is the right path?
Can you also include here the packageFiles with updates
log and any relevant error logs from the reproduction repo?
With the above example, the correct path would be
https://repo.maven.apache.org/maven2/org/jetbrains/exposed/exposed-core/maven-metadata.xml
instead of
https://repo.maven.apache.org/maven2/exposed-core/org.jetbrains.exposed/maven-metadata.xml
Here's the full log for the minimal repository I've included which confirms the issue
Hi @keyute i'm trying to reproduce but it's strange as i'm getting different logs and an extra 2 PRs that you don't have on your repository.
i'm getting :
DEBUG: Found 4 package file(s) (repository=StinkyLord/parsing-gradle-maven-url)
INFO: Dependency extraction complete (repository=StinkyLord/parsing-gradle-maven-url)
"baseBranch": "main",
"stats": {
"managers": {
"gradle": {"fileCount": 3, "depCount": 1},
"gradle-wrapper": {"fileCount": 1, "depCount": 1}
},
"total": {"fileCount": 4, "depCount": 2}
}
DEBUG: Looking up org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin in repository https://repo.maven.apache.org/maven2/ (repository=StinkyLord/parsing-gradle-maven-url)
DEBUG: Found 3 new releases for org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin in repository https://repo.maven.apache.org/maven2/ (repository=StinkyLord/parsing-gradle-maven-url)
DEBUG: Looking up org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin in repository https://plugins.gradle.org/m2/ (repository=StinkyLord/parsing-gradle-maven-url)
DEBUG: Found 91 new releases for org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin in repository https://plugins.gradle.org/m2/ (repository=StinkyLord/parsing-gradle-maven-url)
DEBUG: PackageFiles.add() - Package file saved for branch (repository=StinkyLord/parsing-gradle-maven-url)
Notice the number of dependencies found is 2 not 3,
and in the config :
"config": {
"gradle": [
{"packageFile": "gradle.properties", "datasource": "maven", "deps": []},
{"packageFile": "settings.gradle.kts", "datasource": "maven", "deps": []},
{
"packageFile": "build.gradle.kts",
"datasource": "maven",
"deps": [
{
"depType": "plugin",
"depName": "org.jetbrains.kotlin.jvm",
"packageName": "org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin",
"registryUrls": [
"https://repo.maven.apache.org/maven2",
"https://plugins.gradle.org/m2/"
],
Notice that there is no
"packageFile": "settings.gradle.kts",
"datasource": "maven",
"deps": [
in my logs.
I tried reproducing on windows cli + docker + renovate app,
I wasn't able to reproduce, there's no mention of caffeine
in my logs!
i was able to reproduce on an older version of renovate through docker
DEBUG: Found gradle-wrapper package files (repository=StinkyLord/parsing-gradle-maven-url)
DEBUG: Found 4 package file(s) (repository=StinkyLord/parsing-gradle-maven-url)
INFO: Dependency extraction complete (repository=StinkyLord/parsing-gradle-maven-url)
"baseBranch": "main",
"stats": {
"managers": {
"gradle": {"fileCount": 3, "depCount": 2},
"gradle-wrapper": {"fileCount": 1, "depCount": 1}
},
"total": {"fileCount": 4, "depCount": 3}
}
DEBUG: Looking up caffeine:com.github.ben-manes.caffeine in repository https://repo.maven.apache.org/maven2/ (repository=StinkyLord/parsing-gradle-maven-url)
DEBUG: Looking up org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin in repository https://repo.maven.apache.org/maven2/ (repository=StinkyLord/parsing-gradle-maven-url)
DEBUG: Content is not found for Maven url (repository=StinkyLord/parsing-gradle-maven-url)
"url": "https://repo.maven.apache.org/maven2/caffeine/com.github.ben-manes.caffeine/maven-metadata.xml",
"statusCode": undefined
reproduced on version 32.10.0, we might have a bigger issue as this is not reproducible on latest versions of renovate, but ignored!
This format
library(alias, group, artifact).version(string)
is not supported in renovate i think this is a feature request
@PhilipAbed, your analysis is correct. While testing #15903 with a different repo, I also stumbled upon this issue. I already have a fix for it ready but wanted to wait for the other PR to be merged to prevent merge conflicts.
@keyute i can see that @Churro already merged https://github.com/renovatebot/renovate/pull/15929 can you try to check if it is fixed so we can close this issue?
Closing as this has been resolved with https://github.com/renovatebot/renovate/pull/15929.
The test repo https://github.com/keyute/renovate-issue is no longer available but tests confirm that the initially mentioned problem cases are meanwhile working: https://github.com/renovatebot/renovate/blob/cc50beb0934874095fd2164b33dcb5fed7dbf421/lib/modules/manager/gradle/parser.spec.ts#L98-L99
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us what version of Renovate you run.
31.94.0
Please select which platform you are using if self-hosting.
GitLab self-hosted
If you're self-hosting Renovate, tell us what version of the platform you run.
14.8.2-ee
Was this something which used to work for you, and then stopped?
I never saw this working
Describe the bug
Renovate looks up maven-metadata.xml at the wrong path when using library(alias, group, artifact).version(string)
Example library("exposed-core", "org.jetbrains.exposed", "exposed-core").versionRef("exposed") library("caffeine", "com.github.ben-manes.caffeine", "caffeine").version("3.0.4")
Relevant debug logs
Logs
``` Copy/paste any log here, between the starting and ending backticks {"name":"renovate","hostname":"***","pid":54,"level":20,"logContext":"***","repository":"***","url":"https://repo.maven.apache.org/maven2/exposed-core/org.jetbrains.exposed/maven-metadata.xml","msg":"Content is not found for Maven url","time":"2022-02-28T14:39:20.204Z","v":0} {"name":"renovate","hostname":"***","pid":54,"level":20,"logContext":"***","repository":"***","url":"https://repo.maven.apache.org/maven2/caffeine/com.github.ben-manes.caffeine/maven-metadata.xml","msg":"Content is not found for Maven url","time":"2022-02-28T14:39:18.968Z","v":0} ```Have you created a minimal reproduction repository?
No reproduction repository