Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Commands/PackageCommands/DumpCommands.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)!
}
}
6 changes: 3 additions & 3 deletions Sources/Commands/Utilities/PluginDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down