Closed schomatis closed 6 years ago
So, this is a fix but, after thinking about this, I think the better fix is to change the traversal order to breadth first (and ban all overwriting). This catches the case where the root package overrides a dependency version but doesn't apply the same logic recursively.
How about:
Do you mind merging this anyway while we discuss this other solution in the original issue? (The other gx-go link
PR I'm working on already depends on this one, and although not optimal it's still a valid solution that would allow me to concentrate on that before revisiting this one.)
Fair enough. This fixes the immediate issue.
Fixes #44.
Tested locally, it feels that it should have a test but I don't see any testing framework here (it would be nice to have it to easily create dependencies trees and test different scenarios, I'll open an issue about it.)