DerivationGoal::loadDerivation(): Don't use derivationFromPath()

This causes a recursive call to ensurePath(), which is not a good
idea.
This commit is contained in:
Eelco Dolstra 2021-12-08 14:03:44 +01:00
parent f71d84672b
commit be64fb9b51

View file

@ -194,7 +194,7 @@ void DerivationGoal::loadDerivation()
assert(worker.evalStore.isValidPath(drvPath)); assert(worker.evalStore.isValidPath(drvPath));
/* Get the derivation. */ /* Get the derivation. */
drv = std::make_unique<Derivation>(worker.evalStore.derivationFromPath(drvPath)); drv = std::make_unique<Derivation>(worker.evalStore.readDerivation(drvPath));
haveDerivation(); haveDerivation();
} }