gexp: 'file-append' correctly handles bases without an expander.
authorLudovic Courtès <ludo@gnu.org>
Sat, 27 Nov 2021 21:10:38 +0000 (22:10 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sat, 27 Nov 2021 22:06:17 +0000 (23:06 +0100)
commit6b30eb189e48e290136d6a838729cf2eb07ee82f
tree7706a194d238e855743af5a8a49acc4ca92f7046
parent61ad9bc2adc189f41128874649b115cfaadec48d
gexp: 'file-append' correctly handles bases without an expander.

This fixes this use case:

  (file-append (let-system ...) ...)

* guix/gexp.scm (file-append-compiler): When BASE lacks an expander,
delegate to LOWERED.
* tests/gexp.scm ("let-system in file-append"): New test.
guix/gexp.scm
tests/gexp.scm