-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle manager fails when using same version and library names #18825
Comments
@zharinov any idea? |
I just realized I put the preproduction repo as private. Now it's public: https://github.com/atorrescogollo/renovate-issue-18825 |
maybe blocked by |
@atorrescogollo Please add a readme to the repo with expected and current behavior description |
I realized that the problem is not related to Regarding the #18484 PR, I run it against a test repo I have and it has the same issue. |
@viceice I updated both the issue and the reproduction repo, so maybe would be a good idea to rebase your fork |
PR #18830 adds a solution that will help for the current issue and also the "standard case" in which the default version catalog name In practice, it is possible to also specify version catalogs with different names. The current gradle parser won't be able find out prefix the correct name as it parses gradle files token-wise. At the time it pars a version catalog To make this work for version catalogs with any name, I'm going to extend #18484 with a proper solution. |
How are you running Renovate?
Mend Renovate hosted app on github.com
If you're self-hosting Renovate, tell us what version of Renovate you run.
34.20.4
If you're self-hosting Renovate, select which platform you are using.
github.com
If you're self-hosting Renovate, tell us what version of the platform you run.
No response
Was this something which used to work for you, and then stopped?
I never saw this working
Describe the bug
Dependency dashboard shows this when multiple
versionRef
entries reuse the same version entry:But this is actually an issue when looking up versions.
PoC (minimal reproduction)
The expected result would be like this:
However, the actual result is:
Useful extra notes
It looks like the library entry somehow overwrites the version entry since it works if I change the order of the clauses to something like this:
Relevant debug logs
Logs
Have you created a minimal reproduction repository?
I have linked to a minimal reproduction repository in the bug description
The text was updated successfully, but these errors were encountered: