diff --git a/Sources/Commands/PackageCommands/DumpCommands.swift b/Sources/Commands/PackageCommands/DumpCommands.swift index f0b5aa81da1..46c6616da11 100644 --- a/Sources/Commands/PackageCommands/DumpCommands.swift +++ b/Sources/Commands/PackageCommands/DumpCommands.swift @@ -201,7 +201,7 @@ struct DumpPIF: AsyncSwiftCommand { } fileprivate extension BuildOutput.SymbolGraphAccessLevel { - fileprivate static func accessLevel(_ accessLevel: SymbolGraphExtract.AccessLevel) -> BuildOutput.SymbolGraphAccessLevel { + static func accessLevel(_ accessLevel: SymbolGraphExtract.AccessLevel) -> BuildOutput.SymbolGraphAccessLevel { return BuildOutput.SymbolGraphAccessLevel.init(rawValue: accessLevel.rawValue)! } } diff --git a/Sources/Commands/Utilities/PluginDelegate.swift b/Sources/Commands/Utilities/PluginDelegate.swift index e5e82f10126..596cc03dc60 100644 --- a/Sources/Commands/Utilities/PluginDelegate.swift +++ b/Sources/Commands/Utilities/PluginDelegate.swift @@ -181,11 +181,11 @@ final class PluginDelegate: PluginInvocationDelegate { let result = await buildSystem.buildIgnoringError(subset: buildSubset, buildOutputs: [.builtArtifacts]) let success = result != nil - let packageGraph = try await buildSystem.getPackageGraph() + _ = try await buildSystem.getPackageGraph() - var builtArtifacts: [PluginInvocationBuildResult.BuiltArtifact] = (result?.builtArtifacts ?? []).filter { (name, _) in + let builtArtifacts: [PluginInvocationBuildResult.BuiltArtifact] = (result?.builtArtifacts ?? []).filter { (name, _) in switch subset { - case .all(let includingTests): + case .all: return true case .product(let productName): return name == productName