diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-01-24 22:50:40 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-01-24 22:57:49 +0100 |
commit | f304c9c237aca7e9007d6e0cefd6ed858c5a9e47 (patch) | |
tree | ba6720f7db2bd14590d2aa89fa28245ff7ee40a0 /daemon.am | |
parent | da74bc7886cba77192260d84b2dd57466e4b5354 (diff) | |
download | guix-patches-f304c9c237aca7e9007d6e0cefd6ed858c5a9e47.tar guix-patches-f304c9c237aca7e9007d6e0cefd6ed858c5a9e47.tar.gz |
derivations: Raise an error for references to non-existent outputs.
Fixes <http://bugs.gnu.org/19630>.
Reported by Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>.
* guix/derivations.scm (&derivation-error,
&derivation-missing-output-error): New error conditions.
(derivation->output-path): Raise a '&derivation-missing-output-error'
if OUTPUT is not an output of DRV.
* guix/ui.scm (call-with-error-handling): Add case for
'derivation-missing-output-error?'.
(show-what-to-build): Check whether (derivation-outputs drv) is
empty.
* tests/packages.scm ("reference to non-existent output"): Add test.
Diffstat (limited to 'daemon.am')
0 files changed, 0 insertions, 0 deletions