From 81cc4f06abc644b047e0758309cfbd982dac18ed Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 12 Nov 2026 02:33:44 +0000 Subject: populate pipe: deliver changed output of the same size pipe sources get a fixed modification time, so rsync's quick check took changed output of the same size, e.g. a new commit hash or token, for unchanged, and didn't deliver it. pipe sources get synced comparing checksums now. An edge case changes a pipe source's output without changing its size. --- tests/fixtures.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/fixtures.sh') diff --git a/tests/fixtures.sh b/tests/fixtures.sh index 1f6c478..1b39b45 100755 --- a/tests/fixtures.sh +++ b/tests/fixtures.sh @@ -244,6 +244,14 @@ cat > /fixtures/usedata/flake.nix <<'NIX' NIX printf hello > /fixtures/data/value +# pipe2: a command for the pipe source type whose output the tests change. +cat > /fixtures/pipe2 <<'SH' +#! /bin/sh +cat /fixtures/pipe2-data +SH +chmod +x /fixtures/pipe2 +echo piped > /fixtures/pipe2-data + # noflake: a directory without flake.nix. mkdir /fixtures/noflake echo noflake > /fixtures/noflake/README -- cgit v1.3.1