Skip to content

Commit

Permalink
parseInstallables(): Don't try the flake attr path prefixes when no f…
Browse files Browse the repository at this point in the history
…ragment is specified

Fixes #5880.
  • Loading branch information
edolstra committed Feb 11, 2022
1 parent d2f9a08 commit cdc90c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcmd/installables.cc
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ std::vector<std::shared_ptr<Installable>> SourceExprCommand::parseInstallables(
getEvalState(),
std::move(flakeRef),
fragment == "" ? getDefaultFlakeAttrPaths() : Strings{fragment},
getDefaultFlakeAttrPathPrefixes(),
fragment == "" ? Strings{} : getDefaultFlakeAttrPathPrefixes(),
lockFlags));
continue;
} catch (...) {
Expand Down

0 comments on commit cdc90c2

Please sign in to comment.