You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just adjusted a couple of dependencies in a project and it resulted in 2KLOC change in packages.nix (pruned). I suspect change in transitive dependencies caused some packages to be resolved sooner/later and therefore be placed in different place. If packages are sorted by name, diffs should be much smaller.
I don't have a public test-case, sorry.
The text was updated successfully, but these errors were encountered:
Fuuzetsu
changed the title
Make output order
Make output order consistent
Sep 1, 2017
We are using Data.Map, Data.Set, and Data.Graph to store and manipulate loaded packages. They all require Ord class on construction, thus should have a stable order. I also can not think of a place where reordering can happen.
The most obvious thing would be to sort resulting packages set as a final step.
I just adjusted a couple of dependencies in a project and it resulted in 2KLOC change in packages.nix (pruned). I suspect change in transitive dependencies caused some packages to be resolved sooner/later and therefore be placed in different place. If packages are sorted by name, diffs should be much smaller.
I don't have a public test-case, sorry.
The text was updated successfully, but these errors were encountered: