use params.isFetchGit instead to check if it came from fetchGit

This commit is contained in:
Julia Evans 2023-12-17 12:14:55 -05:00
parent 06bed2eacd
commit a47fabff0d

View file

@ -167,7 +167,7 @@ static void fetchTree(
input = lookupInRegistries(state.store, input).first;
if (evalSettings.pureEval && !input.isLocked())
if (type == "git")
if (params.isFetchGit)
state.debugThrowLastTrace(EvalError("in pure evaluation mode, 'fetchGit' requires a locked input, at %s", state.positions[pos]));
else
state.debugThrowLastTrace(EvalError("in pure evaluation mode, 'fetchTree' requires a locked input, at %s", state.positions[pos]));