Skip to content

Commit

Permalink
Only validate constraints once when cleaning the results
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Aug 21, 2023
1 parent d65dc33 commit c9238db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipenv/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ def marker_to_str(marker):

@cached_property
def get_cleaned_dict(self):
self.validate_constraints()
if self.entry.extras != self.lockfile_entry.extras:
entry_extras = list(self.entry.extras)
if self.lockfile_entry.extras:
Expand Down Expand Up @@ -539,6 +538,7 @@ def clean_results(results, resolver, project, category):

if not project.lockfile_exists:
return results
resolver.validate_constraints()
lockfile = project.lockfile_content
lockfile_section = get_lockfile_section_using_pipfile_category(category)
reverse_deps = project.environment.reverse_dependencies()
Expand Down

0 comments on commit c9238db

Please sign in to comment.