diff options
author | Vincent Ambo <mail@tazj.in> | 2021-12-18T13·01+0300 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-12-18T20·26+0000 |
commit | d01848437635184b685088db7e86d7df7eb1584a (patch) | |
tree | ee1c00f79e741bf7d17445bd97768efe26377d72 /bin/__dispatch.sh | |
parent | 3090f61713c7360b12d5ae710686376b0c5e6f82 (diff) |
feat(tools/depotfmt): add a treefmt wrapper with depot configuration r/3295
Right now the only included formatter is gofmt, but we will extend this over time. The version of treefmt is bumped to 0.3.0 (which supports custom config files) until this lands in nixpkgs. Change-Id: I1e1aafd05ec7427c616f90c90490c528ecb2615c Reviewed-on: https://cl.tvl.fyi/c/depot/+/4399 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'bin/__dispatch.sh')
-rwxr-xr-x | bin/__dispatch.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/__dispatch.sh b/bin/__dispatch.sh index c4d8b5991987..6eb24beaf5c6 100755 --- a/bin/__dispatch.sh +++ b/bin/__dispatch.sh @@ -58,6 +58,9 @@ case "${TARGET_TOOL}" in stern) attr="third_party.nixpkgs.stern" ;; + depotfmt) + attr="tools.depotfmt" + ;; *) echo "The tool '${TARGET_TOOL}' is currently not installed in this repository." exit 1 |