feat(tools/depotfmt): add a treefmt wrapper with depot configuration
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>
This commit is contained in:
parent
3090f61713
commit
d018484376
4 changed files with 37 additions and 0 deletions
|
@ -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
|
||||
|
|
1
bin/depotfmt
Symbolic link
1
bin/depotfmt
Symbolic link
|
@ -0,0 +1 @@
|
|||
__dispatch.sh
|
Loading…
Add table
Add a link
Reference in a new issue