diff --git a/Makefile b/Makefile index de62ade864..18544af19e 100644 --- a/Makefile +++ b/Makefile @@ -380,14 +380,19 @@ format: \ .PHONY: format/go ## run golines, gofumpt, goimports for all go files -format/go: +format/go: \ + golines/install \ + gofumpt/install \ + strictgoimports/install \ + goimports/install find ./ -type d -name .git -prune -o -type f -regex '.*[^\.pb]\.go' -print | xargs $(GOPATH)/bin/golines -w -m $(GOLINES_MAX_WIDTH) find ./ -type d -name .git -prune -o -type f -regex '.*[^\.pb]\.go' -print | xargs $(GOPATH)/bin/gofumpt -w find ./ -type d -name .git -prune -o -type f -regex '.*[^\.pb]\.go' -print | xargs $(GOPATH)/bin/strictgoimports -w find ./ -type d -name .git -prune -o -type f -regex '.*\.go' -print | xargs $(GOPATH)/bin/goimports -w .PHONY: format/yaml -format/yaml: +format/yaml: \ + prettier/install prettier --write \ ".github/**/*.yaml" \ ".github/**/*.yml" \