-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
[release-24.05] Treewide Nix reformat pass 1 [skip treewide] #327796
[release-24.05] Treewide Nix reformat pass 1 [skip treewide] #327796
Conversation
00c7763
to
8785524
Compare
e339aaf
to
7126090
Compare
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \ --argstr baseRev f84e54a result/bin/apply-formatting $NIXPKGS_PATH
7126090
to
776b0b4
Compare
I believe this merge blocked the |
Maybe it would've been easier to wait a couple weeks and omit 24.05, but I haven't been watching your overall strategy with the reformat project. |
Yeah in hindsight that probably would've been a bit better, doesn't matter much though |
We'll know next time when we change the format (just kidding) |
So, any plans what to do about this blocker? Should I simply revert this PR? |
@vcunat Ahh sorry I somehow overlooked your comment pointing that out, thanks for the reminder. I'll make a PR today to fix it, it's an easy fix |
Note
This depends on #364004
This is the 24.05 "backport" of #322537, see its description for more info. These PRs will be merged together to avoid backporting problems.
Note
While 24.05 doesn't have the CI action enforcing formatting on new/already-formatted files, this is okay, because nobody's actively developing on 24.05, and the main reason we're doing this is to avoid backporting problems.
Verification
The reformatting commit is fully auto-generated by the code in https://github.com/infinisil/treewide-nixpkgs-reformat-script, see the commit message on how to do a complete verification.
This work is funded by Tweag and Antithesis ✨
Add a 👍 reaction to pull requests you find important.