Commit 01ec78cb authored by Johannes Schriewer's avatar Johannes Schriewer

Bugfix: when removing too much from a directory there is nothing there anymore ;)

parent e2235235
Pipeline #1658 failed with stage
Subproject commit a88c1b643ab403380d768d9c466092df6bd52039
Subproject commit c4e47d4100511497bb7357f50addef9f6f0d1635
......@@ -21,7 +21,7 @@ import atfoundation
public func collectSources(sourceDescriptions: [String], taskForCalculatingPath task: Task?) -> [Path] {
var sources : [Path] = []
for unPrefixedDescription in sourceDescriptions {
let description = (task?.importedPath ?? Path("")).appending(unPrefixedDescription)
let description = (task?.importedPath ?? Path()) + unPrefixedDescription
if unPrefixedDescription.hasSuffix("**.swift") {
let basepath = description.dirname()
do {
......
......@@ -129,7 +129,7 @@ final public class Package {
return arr
}
var adjustedImportPath: Path = Path("")
var adjustedImportPath: Path = Path()
/**Calculate the pruned dependency graph for the given task
- returns: A list of tasks in a reasonable order to be processed. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment