From 8a1d8701f6efa07534e4e0500bc561f1c33fc25f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 10 Mar 2020 11:11:46 +0100 Subject: [PATCH] nix-store -q --graph: Fix edges Fixes #3389. --- src/nix-store/dotgraph.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix-store/dotgraph.cc b/src/nix-store/dotgraph.cc index c9837b3e7..667d917f5 100644 --- a/src/nix-store/dotgraph.cc +++ b/src/nix-store/dotgraph.cc @@ -61,7 +61,7 @@ void printDotGraph(ref store, StorePathSet && roots) for (auto & p : store->queryPathInfo(path)->references) { if (p != path) { workList.insert(p.clone()); - cout << makeEdge(std::string(p.to_string()), std::string(p.to_string())); + cout << makeEdge(std::string(p.to_string()), std::string(path.to_string())); } } }