fetchTree: Only use the registry if flakes are enabled

This commit is contained in:
Eelco Dolstra 2023-09-29 10:48:27 +02:00
parent 4ce7a53a9c
commit 8eb4f735dc

View file

@ -152,7 +152,7 @@ static void fetchTree(
}
}
if (!evalSettings.pureEval && !input.isDirect())
if (!evalSettings.pureEval && !input.isDirect() && experimentalFeatureSettings.isEnabled(Xp::Flakes))
input = lookupInRegistries(state.store, input).first;
if (evalSettings.pureEval && !input.isLocked())