From a344d4647e9ea32f5292c2f8e051131762d88a30 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Fri, 26 Jan 2024 12:49:00 +0100 Subject: [PATCH 1/2] drop md5 and sha256 from MatchSpec (they are ignored anyway) --- conda_libmamba_solver/solver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conda_libmamba_solver/solver.py b/conda_libmamba_solver/solver.py index 82c3e0c7..2ec62eb1 100644 --- a/conda_libmamba_solver/solver.py +++ b/conda_libmamba_solver/solver.py @@ -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 = {} From f5a936667651bd0eb3c17a8f8702cf72a7c872a7 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Fri, 26 Jan 2024 13:00:02 +0100 Subject: [PATCH 2/2] amend news --- news/421-matchspec-validation | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/news/421-matchspec-validation b/news/421-matchspec-validation index 802eb0f8..9b313b0c 100644 --- a/news/421-matchspec-validation +++ b/news/421-matchspec-validation @@ -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