We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example:
rec { a = { a-b = "a - b"; }; c = { c-d = a.a-b; }; }
It is treated as unneeded rec now
rec
I need this rec here, because otherwise it results in: undefined variable 'a' at ...
undefined variable 'a' at ...
The text was updated successfully, but these errors were encountered:
Here is another example which triggers this false positive:
rec { defaultApp = 1; apps.default = defaultApp; devShell = 2; devShells.default = devShell; }
results in Unneeded 'rec' on set at fp.nix:1:1-7:2.
Unneeded 'rec' on set at fp.nix:1:1-7:2
Interestingly, if one comments out either the apps.default or devShells.default line the error is gone.
apps.default
devShells.default
Sorry, something went wrong.
No branches or pull requests
Example:
It is treated as unneeded
rec
nowI need this
rec
here, because otherwise it results in:undefined variable 'a' at ...
The text was updated successfully, but these errors were encountered: