Installing dependencies fails on dangling symlink #4288
Labels
PR: merged
The PR related to this issue has been merged.
Priority: Low
This item is low priority and may not be looked at in the next few release cycles.
Type: Bug 🐛
This issue is a bug.
Milestone
Issue description
In new version of pipenv,
2020.5.28
, we get following error while installing dependencies using commandpipenv install --system --deploy
fromPipfile.lock
. We did not face this problem in previous version of pipenv.The error is related to the following line of code:
pipenv/pipenv/vendor/requirementslib/models/setup_info.py
Line 1851 in 06f5d7f
While installing dependencies, our symlink is dangling because it points out of directory visible to pipenv.
Expected result
Dangling symlinks inside package path might be configurable ignored
Actual result
Installing dependencies fails if dangling symlink sits somewhere inside package path
Steps to replicate
Our pipfile contents:
Dangling symlink is located in "./scripts/symlink_name.sh" related to the path in [packages] section.
Command
pipenv install --system --deploy
causes described problem.Solution
One of possible solutions might be to ignore dangling symlinks in shutil.copytree method
ignore_dangling_symlinks=True
(configurable perhaps). Regrettably, I am not sure if it can cause any problem elsewhere.The text was updated successfully, but these errors were encountered: