Skip to content

Commit

Permalink
alphasort env files
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmyatt authored Nov 20, 2023
1 parent 6d1273c commit 2995b41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion conda_lock/conda_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,11 @@ def render_lockfile_for_platform( # noqa: C901
pip_deps: List[LockedDependency] = []

# ensure consistent ordering of generated file
lockfile.toposort_inplace()
# topographic for explicit files and alphabetical otherwise
if kind == "explicit":
lockfile.toposort_inplace()
else:
lockfile.alphasort_inplace()

for p in lockfile.package:
if p.platform == platform and p.category in categories:
Expand Down

0 comments on commit 2995b41

Please sign in to comment.