about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-06-01T14·40+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-06-01T14·40+0200
commite24e2caaaf2dfd97bfa483800402f21049a42907 (patch)
tree5dfc2406711587ad414ae7940e0e9e0422d9cbc3 /src/libstore/build.cc
parentcf198952d02aae5585e9bb895577b5b4e7b25707 (diff)
Skip substituters with an incompatible store directory
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 7be1571cbb16..9316c069eaa0 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -3132,6 +3132,11 @@ void SubstitutionGoal::tryNext()
     sub = subs.front();
     subs.pop_front();
 
+    if (sub->storeDir != worker.store.storeDir) {
+        tryNext();
+        return;
+    }
+
     try {
         // FIXME: make async
         info = sub->queryPathInfo(storePath);