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:
parent
00eef55993
commit
11b63740e3
|
@ -501,7 +501,7 @@ std::tuple<std::string, FlakeRef, InstallableValue::DerivationInfo> InstallableF
|
||||||
|
|
||||||
auto drvInfo = DerivationInfo{
|
auto drvInfo = DerivationInfo{
|
||||||
std::move(drvPath),
|
std::move(drvPath),
|
||||||
state->store->parseStorePath(attr->getAttr(state->sOutPath)->getString()),
|
state->store->maybeParseStorePath(attr->getAttr(state->sOutPath)->getString()),
|
||||||
attr->getAttr(state->sOutputName)->getString()
|
attr->getAttr(state->sOutputName)->getString()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue