packages: Add the channel .go files to the search path.
authorLudovic Courtès <ludo@gnu.org>
Mon, 11 Mar 2019 21:14:30 +0000 (22:14 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 11 Mar 2019 22:12:26 +0000 (23:12 +0100)
commitbfc9c339301ffe6dd15d156894dc27e05f6f081f
tree589e7e4903c5fe03e8c89fc87fbb1235fc8da88c
parent082c648d281dce035f8d72e64cfd369a0f775c45
packages: Add the channel .go files to the search path.

Until now %LOAD-COMPILED-PATH would wrongfully contain:

  CHANNEL/share/guile/site/X.Y

for each channel, thereby ignoring all the .go files of channels.  This
fixes it so that %LOAD-COMPILED-PATH instead contains:

  CHANNEL/lib/guile/X.Y/site-ccache

* guix/describe.scm (current-channel-entries): New procedure.
(package-path-entries): Change to return the %LOAD-COMPILED-PATH entries
as a second value.
* gnu/packages.scm (%package-module-path): Expect two values from
'package-path-entries' and augment %LOAD-COMPILED-PATH accordingly.
gnu/packages.scm
guix/describe.scm