mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
parseExprFromFile -> evalFile
parseExprFromFile() should be avoided since it doesn't cache anything.
This commit is contained in:
parent
ba75c69e00
commit
23fa7e3606
1 changed files with 2 additions and 4 deletions
|
@ -30,10 +30,8 @@ Value * SourceExprCommand::getSourceExpr(EvalState & state)
|
||||||
|
|
||||||
vSourceExpr = state.allocValue();
|
vSourceExpr = state.allocValue();
|
||||||
|
|
||||||
if (file != "") {
|
if (file != "")
|
||||||
Expr * e = state.parseExprFromFile(resolveExprPath(lookupFileArg(state, file)));
|
state.evalFile(lookupFileArg(state, file), *vSourceExpr);
|
||||||
state.eval(e, *vSourceExpr);
|
|
||||||
}
|
|
||||||
|
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue