Ludovic Courtès f72f4b48c6
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.
2021-09-15 16:52:13 +02:00
..
2020-05-04 09:56:12 +02:00
2020-12-21 17:47:35 +01:00
2020-05-04 09:56:12 +02:00
2020-05-04 09:56:12 +02:00
2020-05-04 09:56:12 +02:00
2020-06-05 22:54:06 +02:00
2020-06-05 22:54:06 +02:00
2021-06-03 13:05:18 +02:00
2021-03-06 11:41:48 +01:00
2020-12-09 22:25:17 +01:00
2021-09-01 23:41:42 +02:00
2021-04-12 18:42:22 +02:00
2021-08-20 12:41:54 +02:00
2021-05-16 23:28:11 +02:00
2021-08-12 12:34:13 +02:00
2020-05-04 09:56:12 +02:00
2019-03-24 00:13:53 +01:00
2019-04-10 17:09:47 +02:00
2021-03-06 11:41:48 +01:00
2019-06-14 21:57:39 +02:00
2021-02-03 12:41:28 +01:00