diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-12-08 14:03:44 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-01-07 13:22:34 +0100 |
commit | be64fb9b5160f50d5b127598c84ffb77b980799b (patch) | |
tree | 0871f1ed906f5df92b703e5086dddf3fb20a2c94 | |
parent | f71d84672b6880634434f58c809c1341499e45e5 (diff) |
DerivationGoal::loadDerivation(): Don't use derivationFromPath()
This causes a recursive call to ensurePath(), which is not a good
idea.
-rw-r--r-- | src/libstore/build/derivation-goal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<Derivation>(worker.evalStore.derivationFromPath(drvPath)); + drv = std::make_unique<Derivation>(worker.evalStore.readDerivation(drvPath)); haveDerivation(); } |