Skip to content

Commit

Permalink
fix: cache URLs on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
serverwentdown committed Sep 23, 2021
1 parent 23f005b commit 58375e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion poetry/installation/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 58375e2

Please sign in to comment.