Skip to content

Commit cb016cd

Browse files
committed
Resolve symlinks in toolchain path when creating sourcekitd reproducer bundle
The realpath will be more useful than eg. `/Library/Developer/Toolchains/swift-latest.xctoolchain`.
1 parent bce4cf6 commit cb016cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Diagnose/ReproducerBundle.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func makeReproducerBundle(for requestInfo: RequestInfo, toolchain: Toolchain, bu
2626
encoding: .utf8
2727
)
2828
if let toolchainPath = toolchain.path {
29-
try toolchainPath.pathString
29+
try toolchainPath.asURL.resolvingSymlinksInPath().path
3030
.write(
3131
to: bundlePath.appendingPathComponent("toolchain.txt"),
3232
atomically: true,

0 commit comments

Comments
 (0)