discovery: Remove dependency on (guix ui).
commit3c0128b035ae00462f1b0a4427d9525d750e5575
authorLudovic Courtès <ludo@gnu.org>
Mon, 26 Mar 2018 21:42:59 +0000 (26 23:42 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 8 Apr 2018 15:48:33 +0000 (8 17:48 +0200)
tree25662dd9ece22bd479764a5bada10a622a27d788
parent2cfc8d69644af6c53fed9128425e8ff70ad4509f
discovery: Remove dependency on (guix ui).

This reduces the closure of (guix discovery) from 28 to 8 modules.

* guix/discovery.scm (scheme-files): Use 'format' instead of 'warning'.
(scheme-modules): Add #:warn parameter.  Use it instead of
'warn-about-load-error'.
(fold-modules): Add #:warn and pass it to 'scheme-modules'.
(all-modules): Likewise.
* gnu/bootloader.scm (bootloader-modules): Pass #:warn to 'all-modules'.
* gnu/packages.scm (fold-packages): Likewise.
* gnu/services.scm (all-service-modules): Likewise.
* guix/upstream.scm (importer-modules): Likewise.
gnu/bootloader.scm
gnu/packages.scm
gnu/services.scm
guix/discovery.scm
guix/upstream.scm