I was wondering if there’s any consensus regarding what formatter to use when contributing to
nixpkgs? I find myself very frustrated on a simple PR that’s been open for two weeks where I was suggested to format my code using
nixfmt and then another maintainer (with merge rights) asking me to use
nixpkgs-fmt, without actually explaining why (just leaving many commit suggestions). Upon asking, I was given the “explanation” (6 days later) that using one of the formatters gives “ugly” results, that’s why I should update it (again).
Apparently there’s no guideline whatsoever and there seem to be different opinions on the topic (see Formatting rules for Nixpkgs for example).
I understand the delays in replying and reviewing PRs, after all we’re all just doing unpaid work in our free time but if all we get are pedantic commit suggestions over a formatter without any details then I’m surprised such maintainers get to decide whether a PR goes in or not, and at this point, I’d rather close my open PRs and spend my free time on something else.
I love NixOS and I can swallow my pride on this one but I think this is a terrible experience for new contributors.
What can be done about it?
PS: I refrain from linking the aforementioned PR to avoid any further conflict and finger-pointing, I think that’s unnecessary.