summaryrefslogtreecommitdiff
path: root/guix/scripts
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-01-13 23:31:16 +0100
committerLudovic Courtès <ludo@gnu.org>2023-01-16 00:06:55 +0100
commita4a35e123b7caac76271c9267ca19ae82ec1d028 (patch)
tree7bd9d14f26bed64ff1a121f14d6e66b781a7f937 /guix/scripts
parent3bfbfa2946aebb7f68c8027ae80f272f6915c94f (diff)
guix graph: 'guix graph --path' correctly handles multiple outputs.
Previously, "guix graph -t references --path guix guile" would fail with: error: '--path' option requires exactly two nodes (given 2) This is because '_' in the 'match' clause wouldn't match the placeholder and would instead be interested as a variable name, thereby meaning NODES is expected to have two lists with the same tail. * guix/scripts/graph.scm (guix-graph): Rename '_' in 'mlet' to '_g' so that the literal '_' used in 'match' below matches.
Diffstat (limited to 'guix/scripts')
-rw-r--r--guix/scripts/graph.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/graph.scm b/guix/scripts/graph.scm
index 2f102180c9..b31cc0014d 100644
--- a/guix/scripts/graph.scm
+++ b/guix/scripts/graph.scm
@@ -598,7 +598,7 @@ Emit a representation of the dependency graph of PACKAGE...\n"))
(run-with-store store
;; XXX: Since grafting can trigger unsolicited builds, disable it.
- (mlet %store-monad ((_ (set-grafting #f))
+ (mlet %store-monad ((_g (set-grafting #f))
(nodes (mapm %store-monad
(node-type-convert type)
(reverse items))))