tvl-depot/perl/lib/Nix
Eelco Dolstra 04170d06bf nix-copy-closure: Fix race condition
There is a long-standing race condition when copying a closure to a
remote machine, particularly affecting build-remote.pl: the client
first asks the remote machine which paths it already has, then copies
over the missing paths. If the garbage collector kicks in on the
remote machine between the first and second step, the already-present
paths may be deleted. The missing paths may then refer to deleted
paths, causing nix-copy-closure to fail. The client now performs both
steps using a single remote Nix call (using ‘nix-store --serve’),
locking all paths in the closure while querying.

I changed the --serve protocol a bit (getting rid of QueryCommand), so
this breaks the SSH substituter from older versions. But it was marked
experimental anyway.

Fixes #141.
2014-07-10 11:58:59 +02:00
..
Config.pm.in Merge branch 'master' into make 2014-01-21 15:30:01 +01:00
CopyClosure.pm nix-copy-closure: Fix race condition 2014-07-10 11:58:59 +02:00
Crypto.pm Support cryptographically signed binary caches 2014-01-08 15:42:53 +01:00
GeneratePatches.pm Install bsdiff and bspatch in $(libexecdir)/nix 2013-12-02 20:21:31 +00:00
Manifest.pm Support cryptographically signed binary caches 2014-01-08 15:42:53 +01:00
SSH.pm build-remote.pl: Properly close the SSH connection between attempts 2013-05-10 02:38:50 +02:00
Store.pm Fix annoying Perl 5.16 warnings 2013-03-08 00:27:32 +01:00
Store.xs Ugly hack to fix building with clang 2014-01-21 16:38:03 +01:00
Utils.pm Give a better error message if writeFile fails due to permission issues 2012-12-20 12:22:13 +01:00