aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2020-12-21 17:12:58 +0100
committerregnat <rg@regnat.ovh>2021-01-18 11:01:39 +0100
commit9432c170e736a6b506d9b35ced5eccff6422ec50 (patch)
tree12c85fe1c4aab479107f38586dd4fce4cdbe3060 /src
parent1acbb61696c118712417bcd1c59021cc84650e16 (diff)
Fix the drv output map for non ca derivations
With the `ca-derivation` experimental features, non-ca derivations used to have their output paths returned as unknown as long as they weren't built (because of a mistake in the code that systematically erased the previous value)
Diffstat (limited to 'src')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index c61f34275..ab78f1435 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -914,7 +914,7 @@ LocalStore::queryDerivationOutputMapNoResolve(const StorePath& path_)
if (realisation)
outputs.insert_or_assign(outputName, realisation->outPath);
else
- outputs.insert_or_assign(outputName, std::nullopt);
+ outputs.insert({outputName, std::nullopt});
}
return outputs;