Files
lix/tests/unit/libutil
eldritch horrors 27d5209f4d libutil: fix copyNAR not reading the whole nar when dropped early
if a copyNAR generator was not drained to completion it would not read
the full nar data from its source. this could happen if the copier was
passed to parseAndDump wrapped as a source because copyNAR would yield
nar metadata *before* it had read it, and GeneratorSource will drain a
generator fully *only* if the source is allowed to throw EndOfFile. in
the parseAndDump case this never happened because parseAndDump expects
to be given an unterminated stream, and thus the combination left some
nar metadata in the input Source, breaking the remote store protocols.

fixes #732

Change-Id: Ia59a53375992bfcdb7bc6b37764ca779622bc8f7
2025-03-18 19:32:58 +00:00
..
2024-11-18 12:31:19 -08:00
2025-03-03 20:48:59 +01:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2025-03-05 23:07:20 +01:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-03-26 16:44:04 -07:00
2024-11-18 12:31:19 -08:00
2025-01-19 09:55:10 +01:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00
2024-11-18 12:31:19 -08:00