aboutsummaryrefslogtreecommitdiff
path: root/src/nix/path-info.cc
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2022-02-18 23:43:33 +0100
committerLinus Heckemann <git@sphalerite.org>2022-02-19 00:32:05 +0100
commitdbdc63bc41d33a33e75d5fc8efa8e6520f9e6494 (patch)
tree66a2633a7f9ebfeedb9bb6cdc5e765c096469aa8 /src/nix/path-info.cc
parent9bc03adbba5334663901c1136203bc07e4776be9 (diff)
path-info: use full store paths when we have them
Fixes #5645
Diffstat (limited to 'src/nix/path-info.cc')
-rw-r--r--src/nix/path-info.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/path-info.cc b/src/nix/path-info.cc
index 3743d7504..d690fe594 100644
--- a/src/nix/path-info.cc
+++ b/src/nix/path-info.cc
@@ -97,7 +97,7 @@ struct CmdPathInfo : StorePathsCommand, MixJSON
for (auto & storePath : storePaths) {
auto info = store->queryPathInfo(storePath);
- auto storePathS = store->printStorePath(storePath);
+ auto storePathS = store->printStorePath(info->path);
std::cout << storePathS;