Skip to content

Commit

Permalink
Drop md5 and sha256 fields from MatchSpec (they are ignored any…
Browse files Browse the repository at this point in the history
…way) (#429)

* drop md5 and sha256 from MatchSpec (they are ignored anyway)

* amend news
  • Loading branch information
jaimergp committed Jan 26, 2024
1 parent d16e1b3 commit 5fc862c
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/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ def _check_spec_compat(self, match_spec: Union[MatchSpec, None]) -> Union[MatchS
if match_spec is None:
return None
supported = "name", "version", "build", "channel", "subdir"
droppable = ("url",)
droppable = ("url", "md5", "sha256")
unsupported_but_set = []
to_drop = set()
to_keep = {}
Expand Down
2 changes: 1 addition & 1 deletion news/421-matchspec-validation
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Bug fixes

* Do not raise error if an unsupported `MatchSpec` field can be safely dropped instead. (#418 via #421)
* Do not raise an error if an unsupported `MatchSpec` field can be safely dropped instead. Currently ignoring `url`, `md5` and `sha256`. (#418 via #421, #427 via #429).

### Deprecations

Expand Down

0 comments on commit 5fc862c

Please sign in to comment.