~ruther/guix-local

d70389c423101d9ee26937e5d63945ac228fe6ee — Ludovic Courtès 10 years ago 417c39f
environment: Improve error reporting for '-l'.

This fixes two problems:

  1. Load errors would print an ugly backtrace.
  2. When FILE was an absolute name, 'load' was passed an incorrect file
     name.

* guix/scripts/environment.scm (options/resolve-packages): Use 'load*' instead
  of 'load'.
1 files changed, 1 insertions(+), 1 deletions(-)

M guix/scripts/environment.scm
M guix/scripts/environment.scm => guix/scripts/environment.scm +1 -1
@@ 200,7 200,7 @@ packages."
                         (package-outputs package)))))
                (('load . file)
                 ;; Add all the outputs of the package defined in FILE.
                 (let ((package (load (string-append (getcwd) "/" file))))
                 (let ((package (load* file (make-user-module '()))))
                   (map (lambda (output)
                          `(package ,package ,output))
                        (package-outputs package))))