From 58375e2618ffeeef06821b0cf54d197a31a67c39 Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Thu, 23 Sep 2021 08:12:41 +0800 Subject: [PATCH] fix: cache URLs on Windows --- poetry/installation/executor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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),