gexp: 'local-file' properly resolves non-literal relative file names.
authorLudovic Courtès <ludo@gnu.org>
Sat, 30 Nov 2019 16:17:00 +0000 (17:17 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sat, 30 Nov 2019 22:50:40 +0000 (23:50 +0100)
commit99c45877a984dd0148151b2e304afef6fb04f1a5
tree39a1e9ff9cbcb619842b6dea70e7efb4126b28c4
parentd70478da2b878350450b976686f29712c06745f3
gexp: 'local-file' properly resolves non-literal relative file names.

* guix/gexp.scm (local-file): Distinguish the case where FILE is a
literal string and when it's not.  Add a clause for when FILE is not a
literal string.
* tests/gexp.scm ("local-file, non-literal relative file name"): New test.
* doc/guix.texi (G-Expressions): Update accordingly.
doc/guix.texi
guix/gexp.scm
tests/gexp.scm