mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Merge pull request #1824 from kateinoigakukun/katei/interpret-relative-scratch-dir
Allow `scratchPath` to be a relative path
This commit is contained in:
@@ -315,7 +315,7 @@ package actor SwiftPMBuildSystem: BuiltInBuildSystem {
|
||||
validating: projectRoot.appendingPathComponent(".build").appendingPathComponent("index-build").filePath
|
||||
)
|
||||
} else if let scratchDirectory = options.swiftPMOrDefault.scratchPath,
|
||||
let scratchDirectoryPath = try? AbsolutePath(validating: scratchDirectory)
|
||||
let scratchDirectoryPath = try? AbsolutePath(validating: scratchDirectory, relativeTo: AbsolutePath(projectRoot))
|
||||
{
|
||||
location.scratchDirectory = scratchDirectoryPath
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user