Skip to content

Commit 9631dac

Browse files
authored
add more information about resolution (#3960)
motivation: additional debug information for resolution errors with overrides changes: include package location on resolution information log
1 parent dbe7b15 commit 9631dac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Workspace/Workspace.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3585,10 +3585,10 @@ extension Workspace {
35853585
case .forced:
35863586
result.append("it was forced")
35873587
case .newPackages(let packages):
3588-
let dependencies = packages.lazy.map({ "'\($0.identity)'" }).joined(separator: ", ")
3588+
let dependencies = packages.lazy.map({ "'\($0.identity)' (\($0.kind.locationString))" }).joined(separator: ", ")
35893589
result.append("the following dependencies were added: \(dependencies)")
35903590
case .packageRequirementChange(let package, let state, let requirement):
3591-
result.append("dependency '\(package.identity)' was ")
3591+
result.append("dependency '\(package.identity)' (\(package.kind.locationString)) was ")
35923592

35933593
switch state {
35943594
case .sourceControlCheckout(let checkoutState)?:

0 commit comments

Comments
 (0)