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 /gnu/packages.scm | |
parent | da74bc7886cba77192260d84b2dd57466e4b5354 (diff) | |
download | gnu-guix-f304c9c237aca7e9007d6e0cefd6ed858c5a9e47.tar gnu-guix-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 'gnu/packages.scm')
0 files changed, 0 insertions, 0 deletions