Jonas Chevalier
Jonas Chevalier
Can you try with #130 ? I have seen that issue before and I think it has been fixed in nixos-unstable.
That's because aarch64-darwin is not quite there yet. You can try `nix-shell --system x86_64-darwin`
You want to set `system = "x86_64-darwin"` in `/etc/nix/nix.conf`. In nix-darwin, this can be achieved by adding it to the `nix.extraOptions` attribute. See https://github.com/LnL7/nix-darwin/blob/e1a3f7292f085fd588d11f94ed0f47968c16df0c/modules/nix/default.nix#L126-L134 I'm not sure if there is...
I like this. :+1:
What if even the config could be declared in Nix. ```nix pkgs.treefmt.withConfig { formatters.ruby = { command = ["${pkgs.rubocop}/bin/rubocop"]; includes = [ "*.rb" ]; }; } ```
Yup. That shape depends on how the systems get abstracted away. Nix 2.8 also has a `formatters. = ` interface so you could run `nix fmt` that then invokes `treefmt`,...
Technically, `nix fmt` leaves the filesystem traversal up to the tool. But I don't know if that is an invariant or not. (and also if it's a good idea).
I thought about it as well :) I think `strace` actually slows down the execution of the program (but I don't know of how much) and is not very portable...
I found the issue, it only takes one path as an argument.
If you want to help, please :+1: this upstream PR: https://github.com/hashicorp/terraform/pull/28191