Skip to content

Commit

Permalink
build: install clang-format only if not exists (#9667)
Browse files Browse the repository at this point in the history
refactor: install clang-format only if not exists

Signed-off-by: mikutas <[email protected]>

Signed-off-by: mikutas <[email protected]>
Signed-off-by: yangxue.chen <[email protected]>
  • Loading branch information
mikutas authored and yangxue.chen committed Sep 29, 2022
1 parent cb124f8 commit 56c4e98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,13 @@ $(GOPATH)/bin/goimports:
go install golang.org/x/tools/cmd/[email protected]

/usr/local/bin/clang-format:
ifeq (, $(shell which clang-format))
ifeq ($(shell uname),Darwin)
brew install clang-format
else
sudo apt-get install clang-format
endif
endif

pkg/apis/workflow/v1alpha1/generated.proto: $(GOPATH)/bin/go-to-protobuf $(PROTO_BINARIES) $(TYPES) $(GOPATH)/src/github.com/gogo/protobuf
# These files are generated on a v3/ folder by the tool. Link them to the root folder
Expand Down

0 comments on commit 56c4e98

Please sign in to comment.