Skip to content

Commit

Permalink
Try solving for issue where vcs ref is getting dropped from resolver …
Browse files Browse the repository at this point in the history
…entry.
  • Loading branch information
matteius committed Oct 21, 2024
1 parent f481ed3 commit ba16435
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pipenv/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ def marker_to_str(marker):

@cached_property
def get_cleaned_dict(self):
from pipenv.utils.constants import VCS_LIST

self.validate_constraints()
if self.entry.extras != self.lockfile_entry.extras:
entry_extras = list(self.entry.extras)
Expand All @@ -267,6 +269,12 @@ def get_cleaned_dict(self):
_, self.entry_dict = self.get_markers_from_dict(self.entry_dict)
if self.resolver.index_lookup.get(self.name):
self.entry_dict["index"] = self.resolver.index_lookup[self.name]

# Handle VCS entries
for key in VCS_LIST:
if key in self.pipfile_dict:
self.entry_dict[key] = self.entry_dict[key]
self.entry_dict["ref"] = self.lockfile_dict["ref"]
return self.entry_dict

@property
Expand Down

0 comments on commit ba16435

Please sign in to comment.