Skip to content

Commit bdd82e0

Browse files
committed
Make sure to sort only absolute paths.
1 parent 7578f1b commit bdd82e0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/WeaverCommand/Configuration.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,15 @@ extension Configuration {
245245
.lazy
246246
.map { self.projectPath + $0 }
247247
.flatMap { $0.isFile ? [$0] : self.recursivePathsByPattern(fromDirectory: $0) }
248-
.filter { $0.exists && $0.isFile && $0.extension == "swift" })
248+
.filter { $0.exists && $0.isFile && $0.extension == "swift" }
249+
.map { $0.absolute() })
249250

250251
inputPaths.subtract(try ignoredPathStrings
251252
.lazy
252253
.map { self.projectPath + $0 }
253254
.flatMap { $0.isFile ? [$0] : try paths(fromDirectory: $0) }
254-
.filter { $0.extension == "swift" })
255+
.filter { $0.extension == "swift" }
256+
.map { $0.absolute() })
255257

256258
return inputPaths.sorted()
257259
}

0 commit comments

Comments
 (0)