Skip to content
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

Fix duplicate entries in generated BOM or catalog #725

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

melix
Copy link
Contributor

@melix melix commented Oct 18, 2024

No description provided.

If a dependency was managed and that it also was part of the
list of modules for which version inference should be triggered,
then we would end up with duplicate entries in the BOM.

This commit fixes that by checking, when version inference occurs,
if a library with the same GAV coordinates was already registered.
In case of nested BOM inlining, it was possible that we missed a case
where an alias was already included, which lead to the _Gradle_ (not ours)
warning "Duplicate entry for alias". However, we should avoid these,
because we already capture duplicate entries (which may be fine in case
we are actually overriding nested catalog versions).
@melix melix added the bug Something isn't working label Oct 18, 2024
@melix melix added this to the 7.2.2 milestone Oct 18, 2024
@melix melix merged commit 2743091 into master Oct 18, 2024
3 checks passed
@melix melix deleted the cc/fix-duplicate-entries branch October 18, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants