Skip to content

Commit

Permalink
leave originally url-based dependencies alone
Browse files Browse the repository at this point in the history
  • Loading branch information
Micah Denbraver committed May 7, 2024
1 parent 0215a84 commit 16a4a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piptools/_compat/pip_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def parse_requirements(
filename, session, finder=finder, options=options, constraint=constraint
):
install_req = install_req_from_parsed_requirement(parsed_req, isolated=isolated)
if install_req.editable:
if install_req.editable and not parsed_req.requirement.startswith('file://'):
# link.url is what is saved to the output file
# we set the url directly to undo the transformation in pip's Link class
file_link = FileLink(install_req.link.url)
Expand Down

0 comments on commit 16a4a60

Please sign in to comment.