Subject: ‘file-append’ expansion is incorrect when passed a store item

From: Ludovic Courtès <[email-masked]>
Date: Mon, 25 May 2020 15:09:11 +0200

Since commit d03001a31a6d460b712825640dba11e3f1a53a14, an object like:

  (file-append (local-file …) "/foo/bar")

where (local-file …) is lowered to a store item, say,
/gnu/store/…-example, would wrongfully expand to:

  /gnu/store/…-example

IOW, the second argument to ‘file-append’ is ignored.

Ricardo noticed it in ‘doc/build.scm’, in ‘guix-manual-text-domain’.

Ludo’.