about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@tvl.su>2024-08-23T14·51+0300
committerclbot <clbot@tvl.fyi>2024-08-23T16·13+0000
commit3530841a139d8b7f83b3c7d3d7e691daeb8348ed (patch)
treeb102a322100da9c82b6a00cf91b8aec3d4634f8f
parent6c31d72000adc2a3277e9925e1abd72c0e17a146 (diff)
chore(tools/depotfmt): remove terraform fmt r/8563
This adds almost a gigabyte of closure size for formatting files that almost
never change.

I'll look into building just the formatter somehow, but it's not a very high
priority task.

Change-Id: Ib0f841e1a98133381c5ae154e2a57df8af52dc1f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12293
Tested-by: BuildkiteCI
Reviewed-by: emery <emery@dmz.rs>
Autosubmit: tazjin <tazjin@tvl.su>
-rw-r--r--tools/depotfmt.nix10
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/depotfmt.nix b/tools/depotfmt.nix
index 04dd6ffc7555..16e6b19b546d 100644
--- a/tools/depotfmt.nix
+++ b/tools/depotfmt.nix
@@ -3,22 +3,12 @@
 { pkgs, ... }:
 
 let
-  # terraform fmt can't handle multiple paths at once, but treefmt
-  # expects this
-  terraformat = pkgs.writeShellScript "terraformat" ''
-    echo "$@" | xargs -n1 ${pkgs.terraform}/bin/terraform fmt
-  '';
-
   config = pkgs.writeText "depot-treefmt-config" ''
     [formatter.go]
     command = "${pkgs.go}/bin/gofmt"
     options = [ "-w" ]
     includes = ["*.go"]
 
-    [formatter.tf]
-    command = "${terraformat}"
-    includes = [ "*.tf" ]
-
     [formatter.nix]
     command = "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt"
     includes = [ "*.nix" ]