Skip to content

Commit

Permalink
fetchTree: Only use the registry if flakes are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Oct 13, 2023
1 parent 4ce7a53 commit 8eb4f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexpr/primops/fetchTree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 8eb4f73

Please sign in to comment.