-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Adhere to [RFC 0166] formatting #404
Comments
cc: @kamadorueda |
It's probably a good question for the community once the RFC is adopted, the options are:
|
As I understand 3 is a non-goal, the formatter implementation is supposed to be considered more of a standard specification for formatting, so different implementations could exist as well, 1. Would be the most optimal. |
The main intention behind making it a standard is to not make the implementation the standard. This allows some room for both bug fixes and minor improvements, but it also makes it clear which changes need to go though another RFC. And while Nixpkgs will have to use the official formatter, there's no problem with other standard-complient formatters existing. It would also be possible to change out the underlying implementation of the official formatter (as long as it's standards-compliant). |
But I do think that for the benefit of everybody's time, it would be best to archive other formatters if the RFC is accepted and implemented. |
I disagree on this end, I think alejandra should adopt the standard, but some formatters, of course, can be archived like nixpkgs-fmt. Since that had one goal in mind, alejandra is more broad and widely used in the community (including myself) so I think its best to continue supporting it and change it to adhere to the RFC. |
If adapting Alejandra to the RFC166 format was easy, I'd already have done so half a year ago. Initially, nixfmt was only our second choice after Alejandra. |
What's wrong with Alejandra that makes it harder to adher to RFC0166? |
We recorded some meetings notes about that here |
Nix Formatter is now out for testing in nixpkgs. |
@kamadorueda |
As much as I'd love for us all to fall on a single standard, after trying out the new nixfmt I don't think I'm willing to use an RFC166 compliant formatter on any of my projects. I'd prefer that alejandra remain as it is currently. |
We could have different modes tbf |
Is anyone actually going to work on and maintain that when there's already alternative formatting tools out there? It seems to me that alejandra has different goals to RFC 166. If so this should be considered a "won't fix". |
After trying nixfmt-rfc-style, I have decided to keep using alejandra in my personal projects. My opinion is that it is ok to have different formatters to choose from, that don't comply with the "standard" |
NixOS/rfcs#166
The text was updated successfully, but these errors were encountered: