From 6513f4fe92726baf2300448762c99733f6fe132a Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 9 May 2023 12:31:36 -0400 Subject: [PATCH] Fix bug, `newInfo` -> `newInfo0` It appears we were checking a variable in the process of definining it. --- src/libstore/build/local-derivation-goal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc index c8944ec8d..eb6c00e77 100644 --- a/src/libstore/build/local-derivation-goal.cc +++ b/src/libstore/build/local-derivation-goal.cc @@ -2529,7 +2529,7 @@ SingleDrvOutputs LocalDerivationGoal::registerOutputs() wanted.to_string(SRI, true), got.to_string(SRI, true))); } - if (!newInfo.references.empty()) + if (!newInfo0.references.empty()) delayedException = std::make_exception_ptr( BuildError("illegal path references in fixed-output derivation '%s'", worker.store.printStorePath(drvPath)));