Skip to content

Commit

Permalink
Merge pull request #6085 from edolstra/fix-flake-defaults
Browse files Browse the repository at this point in the history
parseInstallables(): Don't try the flake attr path prefixes when no fragment is specified
  • Loading branch information
edolstra authored Feb 11, 2022
2 parents 36845dc + cdc90c2 commit 4d67ecb
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 4d67ecb

Please sign in to comment.