Skip to content

Commit

Permalink
Fix cache URLs on Windows
Browse files Browse the repository at this point in the history
Closes #4479

The previous implementation would fail to install packages on Windows
because it creates a `Path` starting with a slash. Such a `Path` is
invalid on Windows. Instead, use the utility function url_to_path.
  • Loading branch information
serverwentdown committed Sep 21, 2021
1 parent 34ca165 commit 59e63d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions poetry/installation/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from cleo.io.null_io import NullIO

from poetry.core.packages.file_dependency import FileDependency
from poetry.core.packages.utils.utils import url_to_path
from poetry.core.packages.utils.link import Link
from poetry.core.pyproject.toml import PyProjectTOML
from poetry.utils._compat import decode
Expand Down

0 comments on commit 59e63d5

Please sign in to comment.