numtide / treefmt-nix

treefmt nix configuration
https://numtide.github.io/treefmt/
MIT License
213 stars 62 forks source link

hclfmt: only format .hcl files #182

Closed zimbatm closed 1 month ago

zimbatm commented 1 month ago

Avoid clashes with the terraform formatter who does a better job at formatting the ".tf" files, since it has more domain knowledge there.

zowoq commented 1 month ago

Using hclfmt for tf files was useful as terraform has an unfree license.

zimbatm commented 1 month ago

In that case you can set programs.terraform.package = pkgs.opentofu no?

zowoq commented 1 month ago

I dropped the hack we were using and set allowUnfreePredicate instead. https://github.com/nix-community/infra/pull/1296

Mic92 commented 3 weeks ago

@zimbatm should we default to opentofu? Presumably it doesn't make a difference for formatting.

zimbatm commented 3 weeks ago

yeah good idea