diff options
author | regnat <rg@regnat.ovh> | 2020-12-21 17:12:58 +0100 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-01-18 11:01:39 +0100 |
commit | 9432c170e736a6b506d9b35ced5eccff6422ec50 (patch) | |
tree | 12c85fe1c4aab479107f38586dd4fce4cdbe3060 | |
parent | 1acbb61696c118712417bcd1c59021cc84650e16 (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)
-rw-r--r-- | src/libstore/local-store.cc | 2 |
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; |