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

Migrate to nixfmt #1332

Closed
rohaquinlop opened this issue May 31, 2024 · 1 comment
Closed

Migrate to nixfmt #1332

rohaquinlop opened this issue May 31, 2024 · 1 comment
Assignees

Comments

@rohaquinlop
Copy link
Collaborator

nixfmt will form the basis for the initial official standard Nix formatter, as established by RFC 166. We should migrate from Alejandra to nixfmt

@rohaquinlop rohaquinlop self-assigned this May 31, 2024
rohaquinlop added a commit to rohaquinlop/makes that referenced this issue Jun 4, 2024
- Migrate from Alejandra to nixfmt
- Formatted all the nix files using nixfmt

Signed-off-by: Robin Quintero <rohaquinlop301@gmail.com>
rohaquinlop added a commit to rohaquinlop/makes that referenced this issue Jun 4, 2024
- Migrate from Alejandra to nixfmt
- Formatted all the nix files using nixfmt

Signed-off-by: Robin Quintero <rohaquinlop301@gmail.com>
rohaquinlop added a commit that referenced this issue Jun 4, 2024
@rohaquinlop rohaquinlop reopened this Jun 17, 2024
rohaquinlop added a commit to rohaquinlop/makes that referenced this issue Jun 17, 2024
- Change from Alejandra to nixfmt in the formatNix
section of the docs.

Signed-off-by: Robin Quintero <rohaquinlop301@gmail.com>
@blotero
Copy link

blotero commented Jun 17, 2024

nixfmt can only fail when the check flag is used, CI systems which rely on a job with the /formatNix builtin would not fail under non compliant nix code. Is this intentional?

https://github.com/NixOS/nixfmt/blob/master/main/Main.hs#L59

@rohaquinlop rohaquinlop reopened this Jun 24, 2024
rohaquinlop pushed a commit to rohaquinlop/makes that referenced this issue Jun 24, 2024
- Run check only in CI, locally it will format the code

Signed-off-by: Robin Quintero <rohaquinlop301@gmail.com>
rohaquinlop pushed a commit to rohaquinlop/makes that referenced this issue Jun 24, 2024
- Run check only in CI, locally it will format the code
- Update docs to show the use of nixfmt
instead of Alejandra

Signed-off-by: Robin Quintero <rohaquinlop301@gmail.com>
rohaquinlop added a commit to rohaquinlop/makes that referenced this issue Jun 24, 2024
- Run check only in CI, locally it will format the code
- Update docs to show the use of nixfmt
instead of Alejandra

Signed-off-by: Robin Quintero <rohaquinlop301@gmail.com>
rohaquinlop added a commit to rohaquinlop/makes that referenced this issue Jun 24, 2024
- Run check only in CI, locally it will format the code
- Update docs to show the use of nixfmt
instead of Alejandra

Signed-off-by: Robin Quintero <rohaquinlop301@gmail.com>
rohaquinlop added a commit to rohaquinlop/makes that referenced this issue Jun 24, 2024
- Run check only in CI, locally it will format the code
- Update docs to show the use of nixfmt
instead of Alejandra

Signed-off-by: Robin Quintero <rohaquinlop301@gmail.com>
dsalaza4 added a commit that referenced this issue Jun 24, 2024
feat(back): #1332 add check flag to nixfmt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants