From 18c8c41b5c2de5a08530b5185cefef86f6ffaff5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 7 Feb 2022 23:57:36 +0300 Subject: [PATCH] fix(tools/depotfmt): clear cache when running checks apparently the cache can get out-of-sync or something; either way we had a build where it missed a file that was misformated. Change-Id: I2967aec99ee1c7c8b978a3dfdfed4ff213bb6591 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5249 Tested-by: BuildkiteCI Reviewed-by: sterni --- tools/depotfmt.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/depotfmt.nix b/tools/depotfmt.nix index 2d70c3f2b..21e71bf3b 100644 --- a/tools/depotfmt.nix +++ b/tools/depotfmt.nix @@ -38,6 +38,7 @@ let # wrapper script for running formatting checks in CI check = pkgs.writeShellScript "depotfmt-check" '' ${pkgs.treefmt}/bin/treefmt \ + --clear-cache \ --fail-on-change \ --config-file ${config} \ --tree-root .