Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before creating your Pull Request...
Is this a fix, improvement or something else?
This is a fix.
Before we could get some different order on consecutive runs when running the pkgtree:
But sometimes, the dependency order could become:
What does this change implement/fix?
As in the pkg-tree implementation, the walking of different dependencies are not determinated, this means that we may have references swapping between consecutive runs. Ensure we always order them the same way now.
Unfortunately, there is no tests to cover that use case (also, the order is random, so it means we would need to run in a non trivial project with a lot of dependencies this tests and regenerate more than ten times). Also, this only impacts the pot file generation, so no code supposed to be running in production. I ensured there is no regression though.
I have ...