Write Hydra roots as regular files instead of symlinks
Note that this requires at least NixOS/Nix@1c208f2b7e.
This commit is contained in:
@ -78,13 +78,9 @@ sub gcRootFor {
|
||||
|
||||
sub registerRoot {
|
||||
my ($path) = @_;
|
||||
|
||||
my $link = gcRootFor $path;
|
||||
|
||||
if (!-l $link) {
|
||||
symlink($path, $link)
|
||||
or die "cannot create GC root `$link' to `$path'";
|
||||
}
|
||||
open ROOT, ">$link" or die "cannot create GC root `$link' to `$path'";
|
||||
close ROOT;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user