From cdc90c2776ee5542fd4d4e1aaa06d1d826daecb0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 11 Feb 2022 15:50:12 +0100 Subject: [PATCH] parseInstallables(): Don't try the flake attr path prefixes when no fragment is specified Fixes #5880. --- src/libcmd/installables.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc index 5e8b62e1a..9f138b420 100644 --- a/src/libcmd/installables.cc +++ b/src/libcmd/installables.cc @@ -709,7 +709,7 @@ std::vector> SourceExprCommand::parseInstallables( getEvalState(), std::move(flakeRef), fragment == "" ? getDefaultFlakeAttrPaths() : Strings{fragment}, - getDefaultFlakeAttrPathPrefixes(), + fragment == "" ? Strings{} : getDefaultFlakeAttrPathPrefixes(), lockFlags)); continue; } catch (...) {