Skip to content

Commit

Permalink
Integrate microcat49's attribute copying fix for lost local req info
Browse files Browse the repository at this point in the history
Fixes #1054

Co-authored-by: Andrew <harta5039@gmail.com>
  • Loading branch information
2 people authored and richafrank committed May 25, 2022
1 parent 34a2416 commit 41b4d37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions piptools/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ def combine_install_requirements(
if combined_ireq.req is not None:
combined_ireq.req.extras = set(combined_ireq.extras)

for attr in ("link", "local_file_path", "original_link"):
setattr(
combined_ireq, attr, getattr(combined_ireq, attr) or getattr(ireq, attr)
)

# InstallRequirements objects are assumed to come from only one source, and
# so they support only a single comes_from entry. This function breaks this
# model. As a workaround, we deterministically choose a single source for
Expand Down

0 comments on commit 41b4d37

Please sign in to comment.