Skip to content

Commit 6a76c92

Browse files
committed
xcodegen: Show absolute path in skipping warning
This would have saved me the time I spent figuring out why something went wrong with the project generation. In my case, the absolute path shown by this warning would have been overtly invalid because the tool was failing to infer the source root directory.
1 parent 5aacff4 commit 6a76c92

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/swift-xcodegen/Sources/SwiftXcodeGen/Generator/ProjectSpec.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ extension ProjectSpec {
130130
_ path: RelativePath, for description: String
131131
) -> RelativePath? {
132132
let path = mapKnownPath(path)
133-
guard repoRoot.appending(path).exists else {
134-
log.warning("Skipping \(description) at '\(path)'; does not exist")
133+
let absPath = repoRoot.appending(path)
134+
guard absPath.exists else {
135+
log.warning("Skipping \(description) at '\(absPath)'; does not exist")
135136
return nil
136137
}
137138
return path

0 commit comments

Comments
 (0)