Skip to content

Commit

Permalink
Fix the drv output map for non ca derivations
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
thufschmitt committed Jan 18, 2021
1 parent 1acbb61 commit 9432c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstore/local-store.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 9432c17

Please sign in to comment.