Merge pull request #11257 from DeterminateSystems/no-failed-substitution

PathSubstitutionGoal: Fix spurious "failed" count in the progress bar
This commit is contained in:
Eelco Dolstra 2024-08-06 10:33:26 +02:00 committed by GitHub
commit 2ed075ffc0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

@ -145,8 +145,10 @@ Goal::Co PathSubstitutionGoal::init()
/* None left. Terminate this goal and let someone else deal
with it. */
if (substituterFailed) {
worker.failedSubstitutions++;
worker.updateProgress();
}
/* Hack: don't indicate failure if there were no substituters.
In that case the calling derivation should just do a