summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-01-12 15:13:47 +0100
committerLudovic Courtès <ludo@gnu.org>2016-05-31 14:25:28 +0200
commit7889e72dad81cdf9ab6c94635976a612662baa09 (patch)
treeb11964b313bcea24272b6532e80d0a5405711f73 /nix
parentf83e82cd00653b443b180ad100886bd096209b83 (diff)
downloadguix-7889e72dad81cdf9ab6c94635976a612662baa09.tar.gz
daemon: 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.
Diffstat (limited to 'nix')
-rw-r--r--nix/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc
index 07babf9797..dd8660dffe 100644
--- a/nix/libstore/build.cc
+++ b/nix/libstore/build.cc
@@ -2345,7 +2345,7 @@ void DerivationGoal::registerOutputs()
                 && redirectedBadOutputs.find(path) != redirectedBadOutputs.end()
                 && pathExists(redirected))
                 replaceValidPath(path, redirected);
-            if (buildMode == bmCheck)
+            if (buildMode == bmCheck && redirected != "")
                 actualPath = redirected;
         }