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

Enforce nixfmt on new files and changed files that were already formatted #326407

Merged
merged 3 commits into from
Jul 23, 2024

Commits on Jul 12, 2024

  1. workflows/check-nix-format: Enforce nixfmt on new/changed files

    This makes the Nix format workflow check new/changed files instead of
    just an allowlist.
    
    This enforces that all PRs updated after this is merged are required to
    have fully standard formatted Nix files!
    infinisil committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    a6cf185 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. workflows/check-nix-format: determine changed files via base commit

    The next commit will use this to have a simpler change
    infinisil committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    8f4eca4 View commit details
    Browse the repository at this point in the history
  2. workflows/check-nix-format: Only ensure for already formatted files

    This prevents situations where contributors need to suddenly format a
    huge file even if they only changed a small part of it (e.g.
    all-packages.nix)
    infinisil committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    8bbfb0b View commit details
    Browse the repository at this point in the history