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 <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-02-07 23:57:36 +03:00 committed by tazjin
parent 3452569ddd
commit 18c8c41b5c

View file

@ -38,6 +38,7 @@ let
# wrapper script for running formatting checks in CI # wrapper script for running formatting checks in CI
check = pkgs.writeShellScript "depotfmt-check" '' check = pkgs.writeShellScript "depotfmt-check" ''
${pkgs.treefmt}/bin/treefmt \ ${pkgs.treefmt}/bin/treefmt \
--clear-cache \
--fail-on-change \ --fail-on-change \
--config-file ${config} \ --config-file ${config} \
--tree-root . --tree-root .