Skip to content

Commit

Permalink
sort virtual too
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Nov 13, 2023
1 parent 638844b commit 5f39175
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conda_libmamba_solver/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def virtual(self) -> Mapping[str, MatchSpec]:
cannot be (un)installed, they only represent constrains for other packages. By convention,
their names start with a double underscore.
"""
return MappingProxyType(self._virtual)
return MappingProxyType(dict(sorted(self._virtual.items())))

@property
def aggressive_updates(self) -> Mapping[str, MatchSpec]:
Expand Down
2 changes: 1 addition & 1 deletion news/378-sort-installed
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Bug fixes

* Ensure installed packages are always sorted to avoid injecting accidental randomness in the solve process. (#378)
* Ensure installed and virtual packages are always sorted to avoid injecting accidental randomness in the solve process. (#378)

### Deprecations

Expand Down

0 comments on commit 5f39175

Please sign in to comment.