Fix content-addressed flake outputs

Prevent some `nix flake` commands to crash by trying to parse a
placeholder output as a store path
This commit is contained in:
regnat 2020-12-21 21:26:29 +01:00
parent 00eef55993
commit 11b63740e3

View File

@ -501,7 +501,7 @@ std::tuple<std::string, FlakeRef, InstallableValue::DerivationInfo> InstallableF
auto drvInfo = DerivationInfo{
std::move(drvPath),
state->store->parseStorePath(attr->getAttr(state->sOutPath)->getString()),
state->store->maybeParseStorePath(attr->getAttr(state->sOutPath)->getString()),
attr->getAttr(state->sOutputName)->getString()
};