Open pinpox opened 2 years ago
No, you are correctly understanding the message. However, flake check
doesn't only look at the semantics of the code (which are equal after this transformation), but also at the formatting. nix-linter has no flake-specific code to handle this, so it throws this warning.
As an aside, I think flake check should be a bit less stringent here, because the simplified code is perfectly reasonable.
So basically I can't use the linter with flakes in their current state with that check? I have found other occurances that seem to have a similar problem. E.g. I'm not using the final:
argument in the overlay, but flake check tells me I have to pass it.
The following line in a flake gives me an error:
I tried simplifying it to:
But then
nix flake check
is not happy:Is this a bug or am I misunderstanding the help message?