aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libcmd/installables.cc2
1 files changed, 1 insertions, 1 deletions
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<std::shared_ptr<Installable>> SourceExprCommand::parseInstallables(
getEvalState(),
std::move(flakeRef),
fragment == "" ? getDefaultFlakeAttrPaths() : Strings{fragment},
- getDefaultFlakeAttrPathPrefixes(),
+ fragment == "" ? Strings{} : getDefaultFlakeAttrPathPrefixes(),
lockFlags));
continue;
} catch (...) {