Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

feat: add alejandra formatter for nix #817

Conversation

marcelarie
Copy link
Contributor

Alternative to nixpkgs-fmt and nixfmt.

@sbc64
Copy link

sbc64 commented Apr 18, 2022

This is working for me so far.

@marcelarie
Copy link
Contributor Author

marcelarie commented Apr 18, 2022

I just realized that running it with the --quiet flag is faster. Should I add it?

This is the results running in the same repo:
without --quiet: 255.27 millis
with --quiet: 6.25 millis

@marcelarie
Copy link
Contributor Author

marcelarie commented Apr 18, 2022

hmm it fails with the arguments. I don't understand why, I tested it on my local config and the formatting works.

@marcelarie marcelarie force-pushed the feature/format-nix-alejandra branch from b8a827b to 3230c15 Compare April 18, 2022 20:55
@marcelarie
Copy link
Contributor Author

I rolled back the commit and it failed too. 🤷🏽‍♂️

@jose-elias-alvarez
Copy link
Owner

Are you talking about CI or the formatter itself? The CI failure is unrelated and I just pushed a fix, so let me know if this is good to go otherwise.

@marcelarie
Copy link
Contributor Author

Good to go @jose-elias-alvarez !

@jose-elias-alvarez
Copy link
Owner

Excellent, thank you!

@jose-elias-alvarez jose-elias-alvarez merged commit 523d8dd into jose-elias-alvarez:main Apr 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants