-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
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
Final polish #269
Final polish #269
Conversation
Oh um, but then we need to redo NixOS/nixpkgs#359904, wait for another Hydra rebuild, then redo NixOS/nixpkgs#361165 |
As much as everyone would wish for, tabs are not whitespace according to Nix whitespace stripping. Fixes NixOS#116, but my overall confidence level in Nixfmt's correctness in parsing the mess which is the Nix syntax remains rather low.
d58725d
to
4200d2e
Compare
Unfortunately, I stumbled upon #116 which I'd now consider a critical correctness issue and therefore blocking. I recently did a Nixpkgs treewide on fucked up strings (for a different variant of indented string syntax fuckup) and therefore know that such things actually still exist in the wild. |
Identifiers already were, that the others weren't was a mere oversight. Fixes NixOS#203
As for "Don't move trailing comments in let anymore", my suggestion would be to keep the commit out and thus the old behavior for the initial formatting, and then add it back in. The other commits are strongly recommended to include for the treewide |
124eca6
to
622ea8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked the diff, looking good to me, thanks! The third commit some people might not like due to it introducing more lines, but I think it's the right move to fix the reported problem (#198).
Final polish: NixOS/nixfmt#269 (cherry picked from commit cb3de35)
…361894) nixfmt-rfc-style: 2024-11-26 -> 2024-12-04 Final polish: NixOS/nixfmt#269 (cherry picked from commit cb3de35) Co-authored-by: Silvan Mosberger <[email protected]>
Picking some low hanging fixes before the big treewide