Fix calling job functions

Fixes #718.
This commit is contained in:
Eelco Dolstra 2020-03-04 15:16:04 +01:00
parent 3cc1deb125
commit 69a6f3448a
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -109,9 +109,10 @@ static void worker(
nlohmann::json reply;
try {
auto v = findAlongAttrPath(state, attrPath, autoArgs, *vRoot);
auto vTmp = findAlongAttrPath(state, attrPath, autoArgs, *vRoot);
state.forceValue(*v);
auto v = state.allocValue();
state.autoCallFunction(autoArgs, *vTmp, *v);
if (auto drv = getDerivation(state, *v, false)) {