Tests the SQLite dump/reconstruct code path introduced in fetcherVersion 4,
which ensures reproducibility of the pnpm v11 store index.
Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Make the fetcher version explicit in the test name in preparation for
adding a v4 test.
Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
If the lockfile is empty, no files will be put in the output directory.
In this case, the find invocations produce an empty list of results.
xargs' default behaviour is to always invoke its command at least once;
if its input is empty, then its command will not be passed any
filenames. This produces an invocation like `chmod 555`. chmod, however,
fails in this case, expecting an operand. So we need to tell xargs not
to invoke its command at all in the case of empty input.