aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorCarlo Nucera <carlo.nucera@protonmail.com>2020-07-17 10:28:33 -0400
committerCarlo Nucera <carlo.nucera@protonmail.com>2020-07-17 10:28:33 -0400
commit5cb840541b2dc52c187424fd46ed2f46dcb6314f (patch)
treefb63982acf9876bc691e67a9fe548101206775b2 /src/libstore/local-store.cc
parent745a03cef5977e3474dcf8ef43cb721a6a7cac8e (diff)
parentbf9f040112c33213910faef40077122f1932d462 (diff)
Merge branch 'multi-output-hashDerivationModulo' of github.com:Ericson2314/nix into misc-ca
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index d1a3b95c1..155c537a5 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -563,7 +563,9 @@ void LocalStore::checkDerivationOutputs(const StorePath & drvPath, const Derivat
}
else {
- Hash h = hashDerivationModulo(*this, drv, true);
+ // Regular, non-CA derivation should always return a single hash and not
+ // hash per output.
+ Hash h = std::get<0>(hashDerivationModulo(*this, drv, true));
for (auto & i : drv.outputs)
check(makeOutputPath(i.first, h, drvName), i.second.path(*this, drv.name), i.first);
}