-
Notifications
You must be signed in to change notification settings - Fork 55
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
use nixfmt
with --format
#251
Conversation
IMO we should probably drop that option entirely from a tool that is about updating packages since those changes also most of the time should get their own commit. |
i personally use this a lot to make sure that any changes i've (or nix-update) have made are still inline with the previous styling. i've been doing this less lately mainly because it's still using nixpkgs-fmt i think it may be nice to have an option for a separate format commit, though - as that would be more inline with what we should be doing |
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 9ed2ca4 |
I think that's too late now. I feel like already too many people depend on it: #253 |
I created the issue because |
@mergify rebase |
Flake lock file updates: • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/8c9fa2545007b49a5db5f650ae91f227672c3877' (2023-11-01) → 'github:hercules-ci/flake-parts/8dc45382d5206bd292f9c2768b8058a8fd8311d9' (2024-05-16) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/ec750fd01963ab6b20ee1f0cb488754e8036d89d' (2023-11-07) → 'github:NixOS/nixpkgs/5a5ac83292c7842072318f57d68a48474f8bd34d' (2024-05-20) • Updated input 'treefmt-nix': 'github:numtide/treefmt-nix/5deb8dc125a9f83b65ca86cf0c8167c46593e0b1' (2023-10-27) → 'github:numtide/treefmt-nix/2fba33a182602b9d49f0b2440513e5ee091d838b' (2024-05-17)
✅ Branch has been successfully rebased |
I get this recently, seems related to this PR. |
You might need nixfmt in your $PATH |
sure, I guess it's |
following rfc 166, nixfmt is now the official formatter for nix and slowing becoming more commonplace in both nixpkgs and the community. though it isn't stable just yet, i think it might be good to start using it sooner rather than later