From 0cad1f80492ecf9b4a3420c1436c79a0648de79b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 12 Jan 2016 15:13:47 +0100 Subject: [PATCH] --check: Fix "failed to produce output path" This occured when sandbox building is disabled, at least one output exists, and at least one other output does not. --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index f776798b0..0b6a214ef 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2662,7 +2662,7 @@ void DerivationGoal::registerOutputs() && redirectedBadOutputs.find(path) != redirectedBadOutputs.end() && pathExists(redirected)) replaceValidPath(path, redirected); - if (buildMode == bmCheck) + if (buildMode == bmCheck && redirected != "") actualPath = redirected; }