-
-
Notifications
You must be signed in to change notification settings - Fork 367
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 AUR dependency resolving #2169
Conversation
Before this fix dependencies for AUR targets were added to the graph after each addition of a target node. Now dependencies are added only after all target nodes are added to the graph. Also added some tests for previously bugged cases.
I had the audacity to propose my solution to the issue. I also found a similar pattern of dependency resolving in the GraphFromSrcInfo method. Maybe it should be fixed too. I haven't dug in it yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a first read it seems correct.
I had a doubt if it was working for recursive AUR dependencies but I haven't tried it out locally yet.
How does it handle yay -Syu ros-melodic-desktop
?
The exists check that was removed had as an objective to prevent the computation of the dep graph for the same AUR package from repeating on each dependency layer
With this fix there is a significant difference only for cases with multiple targets, since it doesn't affect the recursive part.
It gives more or less the same result as the
If I figured it out correctly, repeated computation during recursive traversal is prevented completely in the |
Still very happy to see this implemented. Let's merge it in |
|
Before this fix dependencies for AUR targets were added to the graph after each addition of a target node. Now dependencies are added only after all target nodes are added to the graph.
Also added some tests for previously bugged cases.
Fixes #2157.