Skip to content

Commit 954f8c7

Browse files
Pin buf version
1 parent df27400 commit 954f8c7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ BIN := .tmp/bin
1010
export PATH := $(BIN):$(PATH)
1111
export GOBIN := $(abspath $(BIN))
1212
export PYTHONPATH ?= gen
13+
BUF_VERSION := 1.61.0
1314
CONFORMANCE_ARGS ?= --strict_message --expected_failures=test/conformance/nonconforming.yaml --timeout 10s
1415
ADD_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)

0 commit comments

Comments
 (0)