Skip to content

Commit

Permalink
Change where we cache the package finder to alleviate issue collectin…
Browse files Browse the repository at this point in the history
…g hashes with multiple indexes.
  • Loading branch information
matteius committed Sep 23, 2024
1 parent fbecd8e commit c7e2dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipenv/utils/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys
import tempfile
import warnings
from functools import cached_property, lru_cache
from functools import cache, cached_property, lru_cache
from pathlib import Path
from typing import Dict, List, Optional

Expand Down Expand Up @@ -51,6 +51,7 @@
import importlib.metadata as importlib_metadata


@cache
def get_package_finder(
install_cmd=None,
options=None,
Expand Down Expand Up @@ -326,7 +327,6 @@ def prepare_index_lookup(self):
alt_index_lookup[req_name] = index_mapping[index]
return alt_index_lookup

@cached_property
def package_finder(self):
finder = get_package_finder(
install_cmd=self.pip_command,
Expand Down

0 comments on commit c7e2dd6

Please sign in to comment.