mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
modules: Report the search path in &missing-dependency-error.
* guix/modules.scm (&missing-dependency-error)[search-path]: New field. (source-module-dependencies): Initialize the 'search-path' field.
This commit is contained in:
parent
6ef80eb0d9
commit
1b92d65a40
1 changed files with 5 additions and 2 deletions
|
@ -25,6 +25,7 @@ (define-module (guix modules)
|
|||
#:use-module (ice-9 match)
|
||||
#:export (missing-dependency-error?
|
||||
missing-dependency-module
|
||||
missing-dependency-search-path
|
||||
|
||||
file-name->module-name
|
||||
module-name->file-name
|
||||
|
@ -47,7 +48,8 @@ (define-module (guix modules)
|
|||
;; The error corresponding to a missing module.
|
||||
(define-condition-type &missing-dependency-error &error
|
||||
missing-dependency-error?
|
||||
(module missing-dependency-module))
|
||||
(module missing-dependency-module)
|
||||
(search-path missing-dependency-search-path))
|
||||
|
||||
(define (colon-symbol? obj)
|
||||
"Return true if OBJ is a symbol that starts with a colon."
|
||||
|
@ -132,7 +134,8 @@ (define* (source-module-dependencies module #:optional (load-path %load-path))
|
|||
(module-file-dependencies file))
|
||||
(#f
|
||||
(raise (condition (&missing-dependency-error
|
||||
(module module))))))))
|
||||
(module module)
|
||||
(search-path load-path))))))))
|
||||
|
||||
(define* (module-closure modules
|
||||
#:key
|
||||
|
|
Loading…
Reference in a new issue