From be64fb9b5160f50d5b127598c84ffb77b980799b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 8 Dec 2021 14:03:44 +0100 Subject: [PATCH] DerivationGoal::loadDerivation(): Don't use derivationFromPath() This causes a recursive call to ensurePath(), which is not a good idea. --- src/libstore/build/derivation-goal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc index c6ab5c3d1..d34e53fe8 100644 --- a/src/libstore/build/derivation-goal.cc +++ b/src/libstore/build/derivation-goal.cc @@ -194,7 +194,7 @@ void DerivationGoal::loadDerivation() assert(worker.evalStore.isValidPath(drvPath)); /* Get the derivation. */ - drv = std::make_unique(worker.evalStore.derivationFromPath(drvPath)); + drv = std::make_unique(worker.evalStore.readDerivation(drvPath)); haveDerivation(); }