mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-24 01:51:51 +02:00
graph: %BAG-WITH-ORIGINS-NODE-TYPE includes the origin's guile.
Before that it would include #f for most origins since that the default
value of 'origin-patch-guile'.
* guix/scripts/graph.scm (bag-node-edges): When 'origin-patch-guile'
returns #f, use (default-guile).
* tests/graph.scm ("bag DAG, including origins"): Check for an edge from
O to (default-guile).
This commit is contained in:
+9
-1
@@ -150,7 +150,8 @@ edges."
|
||||
(let-values (((nodes edges) (nodes+edges)))
|
||||
(run-with-store %store
|
||||
(mlet %store-monad ((o* (lower-object o))
|
||||
(p* (lower-object p)))
|
||||
(p* (lower-object p))
|
||||
(g (lower-object (default-guile))))
|
||||
(return
|
||||
(and (find (match-lambda
|
||||
((file "the-uri") #t)
|
||||
@@ -160,6 +161,13 @@ edges."
|
||||
((source target)
|
||||
(and (string=? source (derivation-file-name p*))
|
||||
(string=? target o*))))
|
||||
edges)
|
||||
|
||||
;; There must also be an edge from O to G.
|
||||
(find (match-lambda
|
||||
((source target)
|
||||
(and (string=? source o*)
|
||||
(string=? target (derivation-file-name g)))))
|
||||
edges)))))))))
|
||||
|
||||
(test-assert "derivation DAG"
|
||||
|
||||
Reference in New Issue
Block a user