Skip to content

Commit b13244f

Browse files
committed
Adopt SwiftPM ModulesGraph initializer API adjustment
`ModulesGraph.init` was changed by swiftlang/swift-package-manager#7530 to accept `packages` as a way to avoid having to recompute the full list of packages by walking roots. (cherry picked from commit 2270631)
1 parent aa0ed90 commit b13244f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Sources/SKSwiftPMWorkspace/SwiftPMBuildSystem.swift

+7-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import SourceKitLSPAPI
2626
import Workspace
2727

2828
import struct Basics.AbsolutePath
29+
import struct Basics.IdentifiableSet
2930
import struct Basics.TSCAbsolutePath
3031
import struct Foundation.URL
3132
import protocol TSCBasic.FileSystem
@@ -176,7 +177,12 @@ public actor SwiftPMBuildSystem {
176177
flags: buildSetup.flags
177178
)
178179

179-
self.modulesGraph = try ModulesGraph(rootPackages: [], dependencies: [], binaryArtifacts: [:])
180+
self.modulesGraph = try ModulesGraph(
181+
rootPackages: [],
182+
packages: IdentifiableSet(),
183+
dependencies: [],
184+
binaryArtifacts: [:]
185+
)
180186
self.reloadPackageStatusCallback = reloadPackageStatusCallback
181187

182188
// The debounce duration of 500ms was chosen arbitrarily without scientific research.

0 commit comments

Comments
 (0)