diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-12-20 14:58:39 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-12-20 14:58:39 +0100 |
commit | bda879170fbf8ff8c5397948ccc0e1695d23871a (patch) | |
tree | 33b73d01d047c069af8d7c9fe53801766b87bfe9 /src/libexpr/value-to-json.cc | |
parent | 845fc3f605be6dd1140ab81eefb969da1cc5346b (diff) |
EvalState::copyPathToStore(): Return a StorePath
Diffstat (limited to 'src/libexpr/value-to-json.cc')
-rw-r--r-- | src/libexpr/value-to-json.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/value-to-json.cc b/src/libexpr/value-to-json.cc index 5dc453b2e..c35c876e3 100644 --- a/src/libexpr/value-to-json.cc +++ b/src/libexpr/value-to-json.cc @@ -1,6 +1,7 @@ #include "value-to-json.hh" #include "eval-inline.hh" #include "util.hh" +#include "store-api.hh" #include <cstdlib> #include <iomanip> @@ -35,7 +36,7 @@ json printValueAsJSON(EvalState & state, bool strict, case nPath: if (copyToStore) - out = state.copyPathToStore(context, v.path); + out = state.store->printStorePath(state.copyPathToStore(context, v.path)); else out = v.path; break; |