Skip to content

Commit 629a93c

Browse files
committed
Fix swift-build trouble when using VMs
Fixes https://bugs.swift.org/browse/SR-166
1 parent 59a6615 commit 629a93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Get/PackagesDirectory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extension PackagesDirectory: Fetcher {
5555
switch fetchable {
5656
case let clone as RawClone:
5757
let prefix = Path.join(self.prefix, clone.finalName)
58-
try mkdir(prefix)
58+
try mkdir(prefix.parentDirectory)
5959
try rename(old: clone.path, new: prefix)
6060
return try Package.make(repo: Git.Repo(root: prefix)!)!
6161
case let pkg as Package:

0 commit comments

Comments
 (0)