Skip to content

Commit

Permalink
Prevent PyYAML from sorting keys
Browse files Browse the repository at this point in the history
When keys are sorted, the lockfile packages are represented in
an awkward order with the package "name" near the bottom.
  • Loading branch information
maresb committed Feb 25, 2023
1 parent 2d91cbb commit 934b483
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conda_lock/lockfile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,6 @@ def write_section(text: str) -> None:
content.json(by_alias=True, exclude_unset=True, exclude_none=True)
),
},
f,
stream=f,
sort_keys=False,
)

0 comments on commit 934b483

Please sign in to comment.