File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ BIN := .tmp/bin
1010export PATH := $(BIN ) :$(PATH )
1111export GOBIN := $(abspath $(BIN ) )
1212export PYTHONPATH ?= gen
13+ BUF_VERSION := 1.61.0
1314CONFORMANCE_ARGS ?= --strict_message --expected_failures=test/conformance/nonconforming.yaml --timeout 10s
1415ADD_LICENSE_HEADER := $(BIN ) /license-header \
1516 --license-type apache \
@@ -57,7 +58,7 @@ upstream: $(BIN)/buf
5758 $(ADD_LICENSE_HEADER )
5859
5960.PHONY : format
60- format : install $(BIN ) /buf $(BIN ) /license-header # # Format code
61+ format : install $(BIN ) /buf $(BIN ) /license-header # # Format code
6162 $(ADD_LICENSE_HEADER )
6263 buf format --write .
6364 uv run -- ruff format protovalidate test
@@ -96,10 +97,10 @@ $(BIN):
9697 @mkdir -p $(BIN )
9798
9899$(BIN ) /buf : $(BIN ) Makefile
99- go install github.com/bufbuild/buf/cmd/buf@latest
100+ go install github.com/bufbuild/buf/cmd/buf@v ${BUF_VERSION}
100101
101102$(BIN ) /license-header : $(BIN ) Makefile
102- go install github.com/bufbuild/buf/private/pkg/licenseheader/cmd/license-header@latest
103+ go install github.com/bufbuild/buf/private/pkg/licenseheader/cmd/license-header@v ${BUF_VERSION}
103104
104105$(BIN ) /protovalidate-conformance : $(BIN ) Makefile
105106 go install github.com/bufbuild/protovalidate/tools/protovalidate-conformance@$(PROTOVALIDATE_VERSION )
You can’t perform that action at this time.
0 commit comments