[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/05: guix graph: 'guix graph --path' correctly handles multiple output
From: |
guix-commits |
Subject: |
01/05: guix graph: 'guix graph --path' correctly handles multiple outputs. |
Date: |
Sun, 15 Jan 2023 18:09:43 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit a4a35e123b7caac76271c9267ca19ae82ec1d028
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Jan 13 23:31:16 2023 +0100
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.
---
guix/scripts/graph.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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))))