From b8cb71c4225fcd93823b4bd5ddd9846a3cac0c4b Mon Sep 17 00:00:00 2001 From: jaimergp Date: Sun, 7 Jul 2024 13:18:11 +0200 Subject: [PATCH] Do try to load .solv files by default (#482) --- conda_libmamba_solver/index.py | 2 +- news/482-try-solv-true | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 news/482-try-solv-true diff --git a/conda_libmamba_solver/index.py b/conda_libmamba_solver/index.py index 4c5ca00c..5afde148 100644 --- a/conda_libmamba_solver/index.py +++ b/conda_libmamba_solver/index.py @@ -256,7 +256,7 @@ def _fetch_channel(self, url: str) -> tuple[str, os.PathLike]: return url, json_path def _json_path_to_repo_info( - self, url: str, json_path: str, try_solv: bool = False + self, url: str, json_path: str, try_solv: bool = True ) -> _ChannelRepoInfo | None: channel = Channel.from_url(url) noauth_url = channel.urls(with_credentials=False, subdirs=(channel.subdir,))[0] diff --git a/news/482-try-solv-true b/news/482-try-solv-true new file mode 100644 index 00000000..6feb8e83 --- /dev/null +++ b/news/482-try-solv-true @@ -0,0 +1,19 @@ +### Enhancements + +* + +### Bug fixes + +* Fix a performance regression where `.solv` repodata cache files were not being loaded when available. (#481 via #482) + +### Deprecations + +* + +### Docs + +* + +### Other + +*