From 3530841a139d8b7f83b3c7d3d7e691daeb8348ed Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 23 Aug 2024 17:51:00 +0300 Subject: chore(tools/depotfmt): remove terraform fmt 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 Autosubmit: tazjin --- tools/depotfmt.nix | 10 ---------- 1 file changed, 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" ] -- cgit 1.4.1