diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-01-09 15:33:16 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-01-09 17:40:53 +0100 |
commit | 5d24e57a611b43ff68700379338b899f62d198cc (patch) | |
tree | 657406ccba276795546ee3273efe2db3b230a10e /nix/libutil | |
parent | 007e69756087234de4d9ea896e013e5d0232bd25 (diff) |
derivations: 'read-derivation' correctly handles case with empty hash.
Reported by Stephen Paul Weber <singpolyma@singpolyma.net> at
<https://lists.gnu.org/archive/html/guix-devel/2023-01/msg00035.html>.
* guix/derivations.scm (read-derivation)[outputs->alist]: Treat the
empty hash case as non-fixed-output whether or not the hash algorithm is
the empty string, and preserve the hash algorithm in <derivation-output>.
* tests/derivations.scm ("'download' built-in builder, no fixed-output hash")
("fixed-output-derivation?, no hash", "read-derivation with hash = #f"): New tests.
Diffstat (limited to 'nix/libutil')
0 files changed, 0 insertions, 0 deletions