Merge pull request #4459 from NixOS/ca/fix-outputmap-for-no-ca

Fix the drv output map for non ca derivations
This commit is contained in:
Eelco Dolstra 2021-01-18 11:23:23 +01:00 committed by GitHub
commit 00eef55993
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;