Skip to content

Commit

Permalink
sort packages prior to rendering
Browse files Browse the repository at this point in the history
ensures consistent package ordering, however lockfile object was produced
  • Loading branch information
minrk committed Apr 1, 2022
1 parent a22ce5a commit c964be4
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 c964be4

Please sign in to comment.