Skip to content

Commit

Permalink
Fix content-addressed flake outputs
Browse files Browse the repository at this point in the history
Prevent some `nix flake` commands to crash by trying to parse a
placeholder output as a store path
  • Loading branch information
thufschmitt committed Jan 18, 2021
1 parent 00eef55 commit 11b6374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix/installables.cc
Expand Up @@ -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()
};

Expand Down

0 comments on commit 11b6374

Please sign in to comment.