discovery: 'all-modules' returns modules in path order.
authorRobert Vollmert <rob@vllmrt.net>
Sat, 25 May 2019 06:40:38 +0000 (08:40 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 26 May 2019 21:02:02 +0000 (23:02 +0200)
commit002d17dcaacba0f86265b34f2509419d9e21224d
tree3b436b8af5354197965f34565f6156ae874c7c20
parentdfc69e4b6d4bbc41a4d37b3cc6ea12adb34aaafa
discovery: 'all-modules' returns modules in path order.

A particular effect of this is that if there are ambiguous
packages in a directory specified with `-L module_dir` and the
distribution, the version from `module_dir` will be loaded,
which is usually what would be expected. (E.g. for `guix build`
or `guix package -i`.)

* guix/discovery.scm (all-modules): Return modules in path order.
* tests/guix-package.sh: Test local definitions take precedence.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
guix/discovery.scm
tests/guix-package.sh