Skip to content

Commit

Permalink
Merge pull request #184 from minrk/toposort-before-write
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusvniekerk authored Apr 1, 2022
2 parents cbf0998 + c964be4 commit 2a9b85a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conda_lock/conda_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,10 @@ def render_lockfile_for_platform( # noqa: C901

conda_deps = []
pip_deps = []

# ensure consistent ordering of generated file
lockfile.toposort_inplace()

for p in lockfile.package:
if p.platform == platform and ((not p.optional) or (p.category in categories)):
if p.manager == "pip":
Expand Down

0 comments on commit 2a9b85a

Please sign in to comment.