graph: Use absolute file name canonicalization.
* guix/scripts/graph.scm (guix-graph): Wrap in 'with-fluids'.
This commit is contained in:
parent
3c9a7185e4
commit
3cabdead6f
|
@ -356,6 +356,9 @@ Emit a Graphviz (dot) representation of the dependencies of PACKAGE...\n"))
|
|||
(_ #f))
|
||||
opts)))
|
||||
(with-store store
|
||||
;; Ask for absolute file names so that .drv file names passed from the
|
||||
;; user to 'read-derivation' are absolute when it returns.
|
||||
(with-fluids ((%file-port-name-canonicalization 'absolute))
|
||||
(run-with-store store
|
||||
;; XXX: Since grafting can trigger unsolicited builds, disable it.
|
||||
(mlet %store-monad ((_ (set-grafting #f))
|
||||
|
@ -364,7 +367,7 @@ Emit a Graphviz (dot) representation of the dependencies of PACKAGE...\n"))
|
|||
packages)))
|
||||
(export-graph (concatenate nodes)
|
||||
(current-output-port)
|
||||
#:node-type type))))))
|
||||
#:node-type type)))))))
|
||||
#t)
|
||||
|
||||
;;; graph.scm ends here
|
||||
|
|
Loading…
Reference in New Issue