1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 06:21:14 +02:00

Fix copyPathToStore()

This commit is contained in:
Eelco Dolstra 2022-05-09 15:29:42 +02:00
parent e89d3e0edf
commit e7f8aa8bdd
5 changed files with 58 additions and 44 deletions

View file

@ -2,6 +2,7 @@
#include "json.hh"
#include "eval-inline.hh"
#include "util.hh"
#include "store-api.hh"
#include <cstdlib>
#include <iomanip>
@ -33,7 +34,9 @@ void printValueAsJSON(EvalState & state, bool strict,
case nPath:
// FIXME: handle accessors
out.write(state.copyPathToStore(context, v.path().path));
out.write(
state.store->printStorePath(
state.copyPathToStore(context, v.path())));
break;
case nNull: