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

Tolerate duplicate analysis dependencies. #572

Closed
jortel opened this issue Dec 5, 2023 · 0 comments · Fixed by #573
Closed

Tolerate duplicate analysis dependencies. #572

jortel opened this issue Dec 5, 2023 · 0 comments · Fixed by #573
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@jortel
Copy link
Contributor

jortel commented Dec 5, 2023

Reported analysis dependencies my contain duplicates. This needs to be tolerated.
Some use cases:

  • The same dependency reported on an analysis as both direct and indirect.
  • The same dependency reported as indirect by multiple dependencies (transient).
@jortel jortel added the kind/bug Categorizes issue or PR as related to a bug. label Dec 5, 2023
@jortel jortel self-assigned this Dec 5, 2023
jortel added a commit that referenced this issue Dec 5, 2023
TechDependencies deduplicated with direct taking priority.
The solution is to sort the dependencies with DIRECT first. Then relax
the Create() to ignore dups on conflict.
The dependencies are not a memory concern.

fixes: #572

---------

Signed-off-by: Jeff Ortel <jortel@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant