Merge pull request #6085 from edolstra/fix-flake-defaults

parseInstallables(): Don't try the flake attr path prefixes when no fragment is specified
This commit is contained in:
Eelco Dolstra 2022-02-11 18:00:00 +01:00 committed by GitHub
commit 4d67ecbbb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 (...) {