Skip to content

Commit

Permalink
fix makefile (#1828)
Browse files Browse the repository at this point in the history
Signed-off-by: kpango <kpango@vdaas.org>

Signed-off-by: kpango <kpango@vdaas.org>
  • Loading branch information
kpango committed Nov 2, 2022
1 parent 8a62467 commit 5f2ce25
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 5f2ce25

Please sign in to comment.