Browse Source

dev-install: sort packages before adding them to networkx.DiGraph, this should ensure a stable outcome from topological_sort()

master
Niklas Rosenstein 6 months ago
parent
commit
f5ead18399
Signed by: NiklasRosenstein <rosensteinniklas@gmail.com> GPG Key ID: 06D269B33D25F6C6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/shore/plugins/dev_install.py

+ 1
- 1
src/shore/plugins/dev_install.py View File

@@ -72,7 +72,7 @@ class DevInstallRenderer:
*monorepo*. The nodes in the graph are the directory names of the packages.
"""

packages = list(monorepo.get_packages())
packages = sorted(monorepo.get_packages(), key=lambda x: x.name, reverse=True)
package_name_mapping = {}
graph = nx.DiGraph()



Loading…
Cancel
Save