records: Make 'report-duplicate-field-specifier' available at expansion-time.
authorLudovic Courtès <ludo@gnu.org>
Thu, 24 Jan 2019 19:48:14 +0000 (20:48 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 24 Jan 2019 19:48:14 +0000 (20:48 +0100)
commitbbb2bd50dcb160d8e60fc657b96f1b6739cd8d89
treeb58e371efb8120b91a15822434b4d6f53200cc74
parent2c5ee9bba4067fb0a9e68fb2af3a6e7fe36960cb
records: Make 'report-duplicate-field-specifier' available at expansion-time.

Fixes a regression in 'guix pack -R' introduced with commit
c2dcff41c2e47f5f978f467864d5ed7829939884.  The imported modules of
'c-compiler' would be compiled in this order: first (guix records),
then (guix search-paths).  Consequently,
'report-duplicate-field-specifier' would be reported as unbound while
compiling (guix search-paths), leading to a build failure.

* guix/records.scm (report-invalid-field-specifier)
(report-duplicate-field-specifier): Move within 'eval-expand'.
guix/records.scm