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

sort order of root nodes in dependency-tree is unstable #3817

Closed
Bananeweizen opened this issue May 5, 2024 · 1 comment · Fixed by #3825
Closed

sort order of root nodes in dependency-tree is unstable #3817

Bananeweizen opened this issue May 5, 2024 · 1 comment · Fixed by #3825

Comments

@Bananeweizen
Copy link
Contributor

Running the dependency-tree mojo on a larger project generates the tree items as such fine. However, in a larger reactor the order of root nodes is "random". So for a list of plugins the root nodes might be sorted

module foo:

  • foo
  • foo.source
  • target platform extra requirements

module bar:

  • target platform extra requirements
  • bar
  • bar.source

etc. Can we make them appear always in the same order? I guess the "randomness" comes from the algorithm that sorts the list of dependencies into the tree node structure, but I didn't easily find how to change it to get something like always foo, foo.source, extra requirements.

Maybe even something as simple as just sorting the root nodes alphabetically would be a quick solution?

@laeubi
Copy link
Member

laeubi commented May 5, 2024

I think the function that prints the result might just order by ID then by Version should be fine.

Bananeweizen added a commit that referenced this issue May 6, 2024
Also indent the unmapped IUs for better readability.

Fixes #3817
laeubi pushed a commit that referenced this issue May 6, 2024
Also indent the unmapped IUs for better readability.

Fixes #3817
eclipse-tycho-bot pushed a commit that referenced this issue May 6, 2024
Also indent the unmapped IUs for better readability.

Fixes #3817

(cherry picked from commit c146887)
eclipse-tycho-bot pushed a commit that referenced this issue May 6, 2024
Also indent the unmapped IUs for better readability.

Fixes #3817

(cherry picked from commit c146887)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants