Make the reference cycle in the cyclic outputs test indirect

This commit is contained in:
Shea Levy 2011-12-21 17:34:44 +00:00
parent b4cee3f816
commit f8e54b7874

View file

@ -54,12 +54,13 @@ rec {
cyclic = (mkDerivation {
name = "cyclic-outputs";
outputs = [ "a" "b" ];
outputs = [ "a" "b" "c" ];
builder = builtins.toFile "builder.sh"
''
mkdir $a $b
mkdir $a $b $c
echo $a > $b/foo
echo $b > $a/bar
echo $b > $c/bar
echo $c > $a/baz
'';
}).a;