mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
* Check against creation of GC roots in the store. Those roots don't
work, because findRoots() stops when it encounters a symlink to the store. And of course the store is supposed to be read-only.
This commit is contained in:
parent
f3ebd03bb1
commit
9bff7ad728
2 changed files with 7 additions and 3 deletions
|
@ -122,7 +122,7 @@ foreach my $expr (@exprs) {
|
|||
close DRVPATHS or exit 1;
|
||||
|
||||
foreach my $drvPath (@drvPaths) {
|
||||
my $target = readlink $drvPath;
|
||||
my $target = readlink $drvPath or die "cannot read symlink `$drvPath'";
|
||||
print STDERR "store derivation is $target\n";
|
||||
}
|
||||
|
||||
|
@ -134,7 +134,7 @@ foreach my $expr (@exprs) {
|
|||
close OUTPATHS or exit 1;
|
||||
|
||||
foreach my $outPath (@outPaths) {
|
||||
my $target = readlink $outPath;
|
||||
my $target = readlink $outPath or die "cannot read symlink `$outPath'";
|
||||
print "$target\n";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue