diff --git a/poetry/installation/executor.py b/poetry/installation/executor.py index 79bf4e34a49..00c11136828 100644 --- a/poetry/installation/executor.py +++ b/poetry/installation/executor.py @@ -11,6 +11,7 @@ from poetry.core.packages.file_dependency import FileDependency from poetry.core.packages.utils.link import Link +from poetry.core.packages.utils.utils import url_to_path from poetry.core.pyproject.toml import PyProjectTOML from poetry.io.null_io import NullIO from poetry.utils._compat import PY2 @@ -617,7 +618,7 @@ def _download_link(self, operation, link): hash_type, FileDependency( package.name, - Path(archive.path) + url_to_path(archive.url) if isinstance(archive, Link) else archive, ).hash(hash_type),