[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/13: modules: Report the search path in &missing-dependency-error.
From: |
Ludovic Courtès |
Subject: |
02/13: modules: Report the search path in &missing-dependency-error. |
Date: |
Sun, 8 Apr 2018 12:04:14 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 1b92d65a40a2cf6028bfc0efb7d7d007d76d008a
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 master updated (8f3448f -> f6dfb8b), Ludovic Courtès, 2018/04/08
- 11/13: cuirass: Add job specs for the modular Guix., Ludovic Courtès, 2018/04/08
- 04/13: gexp: 'directory-union' has a #:resolve-collision parameter., Ludovic Courtès, 2018/04/08
- 13/13: hydra: Clear '%load-compiled-path' for gnu-system.scm., Ludovic Courtès, 2018/04/08
- 02/13: modules: Report the search path in &missing-dependency-error.,
Ludovic Courtès <=
- 07/13: build-self: Use (guix self)., Ludovic Courtès, 2018/04/08
- 10/13: cuirass: Factorize hydra-to-cuirass CI job translation., Ludovic Courtès, 2018/04/08
- 08/13: build: Add 'as-derivation' target., Ludovic Courtès, 2018/04/08
- 06/13: Add (guix self)., Ludovic Courtès, 2018/04/08
- 03/13: union: Allow callers to choose the collision resolution policy., Ludovic Courtès, 2018/04/08
- 09/13: discovery: Remove dependency on (guix ui)., Ludovic Courtès, 2018/04/08
- 01/13: tests: Skip 'pivot-root' test on Ubuntu's 4.4 kernels., Ludovic Courtès, 2018/04/08
- 12/13: hydra: 'guix-modular' jobs use the new 'build-self'., Ludovic Courtès, 2018/04/08
- 05/13: gnu: Add 'guix-register'., Ludovic Courtès, 2018/04/08