Skip to content

Commit 31b89d3

Browse files
committed
[swiftpm] Stop hard-coding the index store path
1 parent 90b0b5e commit 31b89d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SKSwiftPMWorkspace/SwiftPMWorkspace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ extension SwiftPMWorkspace: ExternalWorkspace, BuildSettingsProvider {
172172
}
173173

174174
public var indexStorePath: AbsolutePath? {
175-
return buildPath.appending(components: "index", "store")
175+
return buildParameters.indexStoreMode == .off ? nil : buildParameters.indexStore
176176
}
177177

178178
public var indexDatabasePath: AbsolutePath? {

0 commit comments

Comments
 (0)