Open josqu4red opened 1 year ago
I also got a similar case which it fails.
One interesting finding is that statix check
fails but statix fix
works.
Very simple file to reproduce:
rec {
a = "test";
p = ./test/${a}.nix;
}
It seems to not like the interpolation in the path. @josqu4red You can work around that without converting the whole path to a string by appending to at least one static component: ./. + "/test/${a}.nix"
When running statix on this file - which is otherwise valid and working - I get this output:
Errors disappear if the arg in
++ ifExists ../users/${username}/${hostname}.nix;
is quoted as string, but then the code does not work anymore... Did I miss something ?