diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-09-23 22:17:39 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-09-23 23:41:19 +0200 |
commit | 24ab804ce11fe12ff49cd144a3d9c4bfcf55b41c (patch) | |
tree | fa0c67df4051d433e02a6b910717d44ec9bfda41 /build-aux | |
parent | 7abd5997f41fec38ea1daa9099a9693062f10dbc (diff) | |
download | patches-24ab804ce11fe12ff49cd144a3d9c4bfcf55b41c.tar patches-24ab804ce11fe12ff49cd144a3d9c4bfcf55b41c.tar.gz |
gexp: Catch and report non-self-quoting gexp inputs.
Previously we would, for example, generate build scripts in the store;
when trying to run them, we'd get a 'read' error due to the presence
of #<foo> syntax in there.
* guix/gexp.scm (gexp->sexp)[self-quoting?]: New procedure.
[reference->sexp]: Check whether the argument in a <gexp-input> box is
self-quoting. Raise a '&gexp-input-error' condition if it's not.
* tests/gexp.scm ("lower-gexp, non-self-quoting input"): New test.
Diffstat (limited to 'build-aux')
0 files changed, 0 insertions, 0 deletions