diff options
author | Ludovic Courtès <ludo@gnu.org> | 2021-09-15 16:23:48 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-09-15 16:52:13 +0200 |
commit | f72f4b48c6777da9465ab17baa6762476d6cb270 (patch) | |
tree | 0f38dcacc02a9e5b3e37b3aeb85aceedef1ecf40 /tests/bournish.scm | |
parent | a840caccaee8c9492f4cc8a7ba802ef54391f199 (diff) | |
download | guix-patches-f72f4b48c6777da9465ab17baa6762476d6cb270.tar guix-patches-f72f4b48c6777da9465ab17baa6762476d6cb270.tar.gz |
store: 'map/accumulate-builds' processes the whole list in case of cutoff.
Fixes <https://issues.guix.gnu.org/50264>.
Reported by Lars-Dominik Braun <lars@6xq.net>.
This fixes a regression introduced in
fa81971cbae85b39183ccf8f51e8d96ac88fb4ac whereby 'map/accumulate-builds'
would return REST (the tail of LST) without applying PROC on it. The
effect would be that 'lower-inputs' in (guix gexp) would dismiss those
elements, leading to derivations with correct builders but only a subset
of the inputs they should have had.
* guix/store.scm (map/accumulate-builds): Add #:cutoff parameter and
remove 'accumulation-cutoff' variable. Call PROC on the elements of
REST.
* tests/store.scm ("map/accumulate-builds cutoff"): New test.
Diffstat (limited to 'tests/bournish.scm')
0 files changed, 0 insertions, 0 deletions