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
inherit
Consider this default.nix file:
default.nix
rec { first."hello/there" = 123; second = { inherit (first) "hello/there"; }; }
It is valid:
$ nix-instantiate --eval default.nix -A second.hello/there 123
But with nixfmt, I get:
nixfmt
$ nixfmt default.nix default.nix:3:30: | 3 | second = { inherit (first) "hello/there"; }; | ^ unexpected '"' expecting expression
The text was updated successfully, but these errors were encountered:
I have found a very similar issue to this one. Dollar-sign after inherit:
rec { first.${"hello"} = 123; second = { inherit (first) ${"hello"}; }; }
$ nixfmt default.nix default.nix:3:30: | 3 | second = { inherit (first) ${"hello"}; }; | ^ unexpected '$' expecting expression
Sorry, something went wrong.
Another example:
rec { first."hello.there" = 123; second = { inherit (first) "hello.there"; }; }
default.nix:3:30: | 3 | second = { inherit (first) "hello.there"; }; | ^ unexpected '"' expecting expression
Lucus16
Successfully merging a pull request may close this issue.
Consider this
default.nix
file:It is valid:
But with
nixfmt
, I get:The text was updated successfully, but these errors were encountered: