aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/value-to-json.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-12-20 14:58:39 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-12-20 14:58:39 +0100
commitbda879170fbf8ff8c5397948ccc0e1695d23871a (patch)
tree33b73d01d047c069af8d7c9fe53801766b87bfe9 /src/libexpr/value-to-json.cc
parent845fc3f605be6dd1140ab81eefb969da1cc5346b (diff)
EvalState::copyPathToStore(): Return a StorePath
Diffstat (limited to 'src/libexpr/value-to-json.cc')
-rw-r--r--src/libexpr/value-to-json.cc3
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;