File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 5
5
import re
6
6
import shutil
7
7
import sys
8
+ import tempfile
8
9
import urllib .parse
9
10
10
11
from pathlib import Path
14
15
from poetry .core .packages .utils .link import Link
15
16
from poetry .core .vcs .git import ParsedUrl
16
17
17
- from poetry .config .config import Config
18
18
from poetry .console .application import Application
19
19
from poetry .factory import Factory
20
20
from poetry .installation .executor import Executor
@@ -117,7 +117,8 @@ def mock_clone(
117
117
folder = FIXTURE_PATH / "git" / parsed .resource / path
118
118
119
119
if not source_root :
120
- source_root = Path (Config .create ().get ("cache-dir" )) / "src"
120
+ temp_dir = tempfile .mkdtemp ()
121
+ source_root = Path (temp_dir ) / "src"
121
122
122
123
dest = source_root / path
123
124
dest .parent .mkdir (parents = True , exist_ok = True )
You can’t perform that action at this time.
0 commit comments