about summary refs log tree commit diff
path: root/tools/depotfmt.nix
diff options
context:
space:
mode:
authorIlan Joselevich <personal@ilanjoselevich.com>2024-08-19T17·18+0300
committerclbot <clbot@tvl.fyi>2024-08-20T05·13+0000
commite579d3869da12999f22b55e2799207ee74604beb (patch)
treef5405693dad87fdc5c9ca12a66a9370c16d83dfb /tools/depotfmt.nix
parent01af37c532698fb74c9d47f49b4e3f2be69a55e9 (diff)
feat(tools/depotfmt): Get gofmt from pkgs.go instead of buildGo r/8543
This allows importing just //tools/depotfmt.nix when using a josh
workspace.

Change-Id: Idf7eb438be1cc1e60445aace982fdca1f4367595
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12254
Tested-by: BuildkiteCI
Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tools/depotfmt.nix')
-rw-r--r--tools/depotfmt.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/depotfmt.nix b/tools/depotfmt.nix
index e40001018c37..04dd6ffc7555 100644
--- a/tools/depotfmt.nix
+++ b/tools/depotfmt.nix
@@ -1,6 +1,6 @@
 # Builds treefmt for depot, with a hardcoded configuration that
 # includes the right paths to formatters.
-{ depot, pkgs, ... }:
+{ pkgs, ... }:
 
 let
   # terraform fmt can't handle multiple paths at once, but treefmt
@@ -11,7 +11,7 @@ let
 
   config = pkgs.writeText "depot-treefmt-config" ''
     [formatter.go]
-    command = "${depot.nix.buildGo.go}/bin/gofmt"
+    command = "${pkgs.go}/bin/gofmt"
     options = [ "-w" ]
     includes = ["*.go"]