snix/src
Linus Heckemann 78ac3eb4eb Fix #1762
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.
2018-02-13 14:26:19 +00:00
..
boost Shut up some warnings 2017-04-14 14:42:20 +02:00
build-remote Fix hang in build-remote 2018-02-12 22:48:55 +01:00
buildenv Fix "Unexpected EOF reading a line" error 2017-11-29 11:56:15 +00:00
libexpr Nix stats: flatten statistics 2018-02-11 14:37:50 +01:00
libmain nix-env: Fix parsing of --system 2018-02-08 15:25:03 +01:00
libstore Fix hang in build-remote 2018-02-12 22:48:55 +01:00
libutil Fix #1762 2018-02-13 14:26:19 +00:00
linenoise linenoise.cpp: allow completions from empty input 2017-12-19 12:52:10 -06:00
nix Fix #1762 2018-02-13 14:26:19 +00:00
nix-build Remove nix-build --hash 2018-02-03 10:08:05 +01:00
nix-channel Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-collect-garbage printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
nix-copy-closure Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00
nix-daemon More completely fix recursive nix, unbreak tests 2018-02-07 15:19:28 -06:00
nix-env nix: Respect -I, --arg, --argstr 2017-10-24 12:58:34 +02:00
nix-instantiate Add pure evaluation mode 2018-01-16 19:23:18 +01:00
nix-prefetch-url nix: Respect -I, --arg, --argstr 2017-10-24 12:58:34 +02:00
nix-store Fix #1762 2018-02-13 14:26:19 +00:00
nlohmann nlohmann-json: 2.1.1 -> 3.0.1 2018-01-22 12:19:50 -06:00
resolve-system-dependencies Replace Unicode quotes in user-facing strings by ASCII 2017-07-30 12:32:45 +01:00