[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/08: modules: Report the search path in &missing-dependency-error.
From: |
Ludovic Courtès |
Subject: |
02/08: modules: Report the search path in &missing-dependency-error. |
Date: |
Sat, 7 Apr 2018 12:06:46 -0400 (EDT) |
civodul pushed a commit to branch wip-pull-multiple-derivations
in repository guix.
commit 322525a253a6cd4d5ce6e5fdd04cb20aca56f531
Author: Ludovic Courtès <address@hidden>
Date: Tue Apr 3 23:33:39 2018 +0200
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.
---
guix/modules.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/guix/modules.scm b/guix/modules.scm
index bf656bb..65928f6 100644
--- a/guix/modules.scm
+++ b/guix/modules.scm
@@ -25,6 +25,7 @@
#: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 @@
;; 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 @@ depends on."
(module-file-dependencies file))
(#f
(raise (condition (&missing-dependency-error
- (module module))))))))
+ (module module)
+ (search-path load-path))))))))
(define* (module-closure modules
#:key
- branch wip-pull-multiple-derivations created (now 2577070), Ludovic Courtès, 2018/04/07
- 02/08: modules: Report the search path in &missing-dependency-error.,
Ludovic Courtès <=
- 04/08: build: Add 'as-derivation' target., Ludovic Courtès, 2018/04/07
- 06/08: cuirass: Factorize hydra-to-cuirass CI job translation., Ludovic Courtès, 2018/04/07
- 07/08: cuirass: Add job specs for the modular Guix., Ludovic Courtès, 2018/04/07
- 05/08: discovery: Remove dependency on (guix ui)., Ludovic Courtès, 2018/04/07
- 03/08: build-self: Use (guix self)., Ludovic Courtès, 2018/04/07
- 08/08: hydra: 'guix-modular' jobs use the new 'build-self'., Ludovic Courtès, 2018/04/07
- 01/08: Add (guix self)., Ludovic Courtès, 2018/04/07