tests.trivial-builders: Prevent rebuilds when Nix files change

There's no need to use a Nix file in the path here. By using a different
file we won't cause rebuilds when we change the Nix file, in particular
also when the Nix file is reformatted.
This commit is contained in:
Silvan Mosberger 2024-07-12 03:51:31 +02:00 committed by Silvan Mosberger
parent 323012ced2
commit ea17c502d2
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
Just some text

View File

@ -18,8 +18,8 @@
norefsDup = writeText "hi" "hello";
helloRef = writeText "hi" "hello ${hello}";
helloRefDup = writeText "hi" "hello ${hello}";
path = ./samples.nix;
pathLike.outPath = ./samples.nix;
path = ./apath.txt;
pathLike.outPath = ./apath.txt;
helloFigletRef = writeText "hi" "hello ${hello} ${figlet}";
selfRef = runCommand "self-ref-1" { } "echo $out >$out";
selfRef2 = runCommand "self-ref-2" { } ''echo "${figlet}, $out" >$out'';