diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-07-08 19:11:39 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2020-07-08 19:11:39 -0400 |
commit | 8e0d0689be797f9e42f9b43b06f50c1af7f20b4a (patch) | |
tree | e6cc7abc6bb082b92087ad91e8266ed8f1b99ffa /src/libexpr/get-drvs.cc | |
parent | af95a7c16b0fc0b033a7191f686fe98b2015162f (diff) |
Only store hash of fixed derivation output
we don’t need a full storepath for a fixedoutput derivation. So just
putting the ingestion method + the hash is sufficient.
Diffstat (limited to 'src/libexpr/get-drvs.cc')
-rw-r--r-- | src/libexpr/get-drvs.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/get-drvs.cc b/src/libexpr/get-drvs.cc index 9055f59a1..5d6e39aa0 100644 --- a/src/libexpr/get-drvs.cc +++ b/src/libexpr/get-drvs.cc @@ -39,7 +39,7 @@ DrvInfo::DrvInfo(EvalState & state, ref<Store> store, const std::string & drvPat if (i == drv.outputs.end()) throw Error("derivation '%s' does not have output '%s'", store->printStorePath(drvPath), outputName); - outPath = store->printStorePath(i->second.path); + outPath = store->printStorePath(i->second.path(*store, drv.name)); } |