aboutsummaryrefslogtreecommitdiff
path: root/src/nix-env
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-24 21:02:51 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-24 21:14:06 +0000
commit2c7557481b4c9d5113a65cc7a75c8acc18031f4e (patch)
tree11670e25941c01ffe9a45162753813120348c326 /src/nix-env
parent2292814049256980c6e809ab364ebe0da3c9d76a (diff)
`queryDerivationOutputMap` no longer assumes all outputs have a mapping
This assumption is broken by CA derivations. Making a PR now to do the breaking daemon change as soon as possible (if it is already too late, we can bump protocol intead).
Diffstat (limited to 'src/nix-env')
-rw-r--r--src/nix-env/nix-env.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc
index ddd036070..d36804658 100644
--- a/src/nix-env/nix-env.cc
+++ b/src/nix-env/nix-env.cc
@@ -381,7 +381,7 @@ static void queryInstSources(EvalState & state,
if (path.isDerivation()) {
elem.setDrvPath(state.store->printStorePath(path));
- auto outputs = state.store->queryDerivationOutputMap(path);
+ auto outputs = state.store->queryDerivationOutputMapAssumeTotal(path);
elem.setOutPath(state.store->printStorePath(outputs.at("out")));
if (name.size() >= drvExtension.size() &&
string(name, name.size() - drvExtension.size()) == drvExtension)