File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -304,6 +304,7 @@ public class SwiftTool {
304
304
/// workspace is not needed, infact it would be an error to ask for the workspace object
305
305
/// for package init because the Manifest file should *not* present.
306
306
private var _workspace : Workspace ?
307
+ private var _workspaceDelegate : ToolWorkspaceDelegate ?
307
308
308
309
/// Create an instance of this tool.
309
310
///
@@ -514,6 +515,7 @@ public class SwiftTool {
514
515
cachePath: try self . getCachePath ( )
515
516
)
516
517
_workspace = workspace
518
+ _workspaceDelegate = delegate
517
519
return workspace
518
520
}
519
521
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ private class WorkspaceRepositoryManagerDelegate: RepositoryManagerDelegate {
183
183
/// This class does *not* support concurrent operations.
184
184
public class Workspace {
185
185
/// The delegate interface.
186
- public let delegate : WorkspaceDelegate ?
186
+ public weak var delegate : WorkspaceDelegate ?
187
187
188
188
/// The path of the workspace data.
189
189
public let dataPath : AbsolutePath
You can’t perform that action at this time.
0 commit comments