Skip to content

Commit daa8595

Browse files
committed
Use protoImage for buf calls
1 parent 76a6fd2 commit daa8595

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Makefile

+2-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ SIMAPP = ./app
1010

1111
# for dockerized protobuf tools
1212
DOCKER := $(shell which docker)
13-
BUF_IMAGE=bufbuild/buf@sha256:3cb1f8a4b48bd5ad8f09168f10f607ddc318af202f5c057d52a45216793d85e5 #v1.4.0
14-
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(BUF_IMAGE)
1513
HTTPS_GIT := https://github.com/CosmWasm/wasmd.git
1614

1715
export GO111MODULE = on
@@ -187,10 +185,10 @@ proto-swagger-gen:
187185
@./scripts/protoc-swagger-gen.sh
188186

189187
proto-lint:
190-
@$(DOCKER_BUF) lint --error-format=json
188+
@$(protoImage) buf lint --error-format=json
191189

192190
proto-check-breaking:
193-
@$(DOCKER_BUF) breaking --against $(HTTPS_GIT)#branch=main
191+
@$(protoImage) buf breaking --against $(HTTPS_GIT)#branch=main
194192

195193
.PHONY: all install install-debug \
196194
go-mod-cache draw-deps clean build format \

0 commit comments

Comments
 (0)