Skip to content

Commit

Permalink
[PackageLoading] Always parse manifest when there are errors
Browse files Browse the repository at this point in the history
<rdar://problem/53108485>
  • Loading branch information
aciidgh committed Jul 16, 2019
1 parent 22436df commit 318fc16
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/PackageLoading/ManifestLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,14 @@ final class ManifestLoadRule: LLBuildRule {
engine.taskNeedsInput(FileInfoRule.RuleKey(path: key.path), inputID: 3)
}

override func isResultValid(_ priorValue: Value) -> Bool {
// Always rebuild if we had a failure.
let value = RuleKey.BuildValue(priorValue)
if value.hasErrors { return false }

return super.isResultValid(priorValue)
}

override func inputsAvailable(_ engine: LLTaskBuildEngine) {
let value = loader.parse(
packageIdentity: key.packageIdentity,
Expand Down

0 comments on commit 318fc16

Please sign in to comment.