Skip to content
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

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

infinisil
Copy link
Member

@infinisil infinisil commented Jul 17, 2024

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.

@infinisil infinisil force-pushed the backport-treewide-format branch from 00c7763 to 8785524 Compare July 17, 2024 05:45
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Sep 10, 2024
@infinisil infinisil changed the title [backport release-24.05] Treewide Nix reformat pass 1 [skip treewide] [release-24.05] Treewide Nix reformat pass 1 [skip treewide] Dec 10, 2024
@infinisil infinisil force-pushed the backport-treewide-format branch 3 times, most recently from e339aaf to 7126090 Compare December 10, 2024 18:16
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
@infinisil infinisil force-pushed the backport-treewide-format branch from 7126090 to 776b0b4 Compare December 10, 2024 19:22
@infinisil infinisil marked this pull request as ready for review December 10, 2024 19:49
@infinisil infinisil merged commit 3022f7a into NixOS:release-24.05 Dec 10, 2024
11 of 12 checks passed
@infinisil infinisil deleted the backport-treewide-format branch December 10, 2024 19:55
@vcunat
Copy link
Member

vcunat commented Dec 11, 2024

I believe this merge blocked the release-24.05-small channel (and others). See
https://hydra.nixos.org/build/282045490

@vcunat
Copy link
Member

vcunat commented Dec 11, 2024

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.

@infinisil
Copy link
Member Author

Yeah in hindsight that probably would've been a bit better, doesn't matter much though

@vcunat
Copy link
Member

vcunat commented Dec 11, 2024

We'll know next time when we change the format :trollface: (just kidding)

@vcunat
Copy link
Member

vcunat commented Dec 12, 2024

So, any plans what to do about this blocker? Should I simply revert this PR?

@infinisil
Copy link
Member Author

@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

@infinisil
Copy link
Member Author

@vcunat #364553

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants