Skip to content

Commit

Permalink
update tool installation
Browse files Browse the repository at this point in the history
Signed-off-by: Kosuke Morimoto <[email protected]>
  • Loading branch information
kmrmt committed Nov 17, 2023
1 parent 7994a4d commit 878034b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile.d/proto.mk
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $(ROOTDIR)/apis/proto/v1/rpc/errdetails/error_details.proto:
proto/gen: \
$(PROTOS) \
proto/deps
@$(call green, "generating pb.go, swagger.json files and documents for API v1...")
@$(call green, "generating pb.go and swagger.json files and documents for API v1...")
buf generate
find $(ROOTDIR)/apis/grpc/* -name '*.go' | xargs sed -i -E "s%google.golang.org/grpc/codes%github.com/vdaas/vald/internal/net/grpc/codes%g"
find $(ROOTDIR)/apis/grpc/* -name '*.go' | xargs sed -i -E "s%google.golang.org/grpc/status%github.com/vdaas/vald/internal/net/grpc/status%g"
Expand Down
6 changes: 0 additions & 6 deletions Makefile.d/tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ $(BINDIR)/kubectl:
curl -L "https://dl.k8s.io/release/$(KUBECTL_VERSION)/bin/$(shell echo $(UNAME) | tr '[:upper:]' '[:lower:]')/$(subst x86_64,amd64,$(shell echo $(ARCH) | tr '[:upper:]' '[:lower:]'))/kubectl" -o $(BINDIR)/kubectl
chmod a+x $(BINDIR)/kubectl

.PHONY: protobuf/install
protobuf/install: $(GOBIN)/buf

$(GOBIN)/buf:
$(call go-install, github.com/bufbuild/buf/cmd/buf)

.PHONY: textlint/install
textlint/install:
npm install -g textlint textlint-rule-en-spell textlint-rule-prh textlint-rule-write-good
Expand Down
2 changes: 1 addition & 1 deletion dockers/ci/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ RUN make ngt/install \
&& make golangci-lint/install \
&& make reviewdog/install \
&& make kubectl/install \
&& make protobuf/install
&& make buf/install

ENV PATH=$PATH:$GOPATH/bin

Expand Down
2 changes: 1 addition & 1 deletion versions/BUF_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.22.0
1.28.1

0 comments on commit 878034b

Please sign in to comment.