about summary refs log tree commit diff
path: root/tests/nar-access.sh (follow)
AgeCommit message (Collapse)AuthorFilesLines
2018-02-13 Fix #1762Linus Heckemann1-0/+6
nix-store --export, nix-store --dump, and nix dump-path would previously fail silently if writing the data out failed, because a) FdSink::write ignored exceptions, and b) the commands relied on FdSink's destructor, which ignores exceptions, to flush the data out. This could cause rather opaque issues with installing nixos, because nix-store --export would happily proceed even if it couldn't write its data out (e.g. if nix-store --import on the other side of the pipe failed). This commit adds tests that expose these issues in the nix-store commands, and fixes them for all three.
2017-12-07 nix ls-{nar,store}: Return offset of files in the NAR if knownEelco Dolstra1-2/+2
E.g. $ nix ls-store --json --recursive --store https://cache.nixos.org /nix/store/b0w2hafndl09h64fhb86kw6bmhbmnpm1-blender-2.79 \ | jq .entries.bin.entries.blender.narOffset 400
2017-11-14 nix ls-{nar,store}: Don't abort on missing filesEelco Dolstra1-0/+4
2017-11-14 Add some testsEelco Dolstra1-4/+15
2017-11-14 Rename tests/nar-index -> tests/nar-accessEelco Dolstra1-0/+23