forked from lix-project/lix
Linus Heckemann
78ac3eb4eb
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. |
||
---|---|---|
.. | ||
lang | ||
add.sh | ||
binary-cache.sh | ||
brotli.sh | ||
build-hook.nix | ||
build-remote.sh | ||
case-hack.sh | ||
case.nar | ||
check-refs.nix | ||
check-refs.sh | ||
check-reqs.nix | ||
check-reqs.sh | ||
check.nix | ||
check.sh | ||
common.sh.in | ||
config.nix | ||
dependencies.builder0.sh | ||
dependencies.builder1.sh | ||
dependencies.builder2.sh | ||
dependencies.nix | ||
dependencies.sh | ||
dump-db.sh | ||
export-graph.nix | ||
export-graph.sh | ||
export.sh | ||
fetchGit.sh | ||
fetchMercurial.sh | ||
fetchurl.sh | ||
filter-source.nix | ||
filter-source.sh | ||
fixed.builder1.sh | ||
fixed.builder2.sh | ||
fixed.nix | ||
fixed.sh | ||
gc-concurrent.builder.sh | ||
gc-concurrent.nix | ||
gc-concurrent.sh | ||
gc-concurrent2.builder.sh | ||
gc-runtime.nix | ||
gc-runtime.sh | ||
gc.sh | ||
hash-check.nix | ||
hash.sh | ||
import-derivation.nix | ||
import-derivation.sh | ||
init.sh | ||
install-darwin.sh | ||
lang.sh | ||
linux-sandbox.sh | ||
local.mk | ||
logging.sh | ||
misc.sh | ||
multiple-outputs.nix | ||
multiple-outputs.sh | ||
nar-access.nix | ||
nar-access.sh | ||
nix-build.sh | ||
nix-channel.sh | ||
nix-copy-closure.nix | ||
nix-profile.sh | ||
nix-shell.sh | ||
optimise-store.sh | ||
parallel.builder.sh | ||
parallel.nix | ||
parallel.sh | ||
pass-as-file.sh | ||
placeholders.sh | ||
pure-eval.nix | ||
pure-eval.sh | ||
referrers.sh | ||
remote-builds.nix | ||
remote-store.sh | ||
repair.sh | ||
restricted.nix | ||
restricted.sh | ||
run.nix | ||
run.sh | ||
secure-drv-outputs.nix | ||
secure-drv-outputs.sh | ||
setuid.nix | ||
shell.nix | ||
shell.shebang.sh | ||
signing.sh | ||
simple.builder.sh | ||
simple.nix | ||
simple.sh | ||
structured-attrs.nix | ||
structured-attrs.sh | ||
tarball.sh | ||
timeout.nix | ||
timeout.sh | ||
user-envs.builder.sh | ||
user-envs.nix | ||
user-envs.sh |