Skip to content

Commit 7c924b7

Browse files
authored
Simplify buf binary install (#1814)
Use simple `go install` to handle the install of hte `buf` tool. Signed-off-by: SuperQ <superq@gmail.com>
1 parent 7ed72b7 commit 7c924b7

File tree

8 files changed

+6
-407
lines changed

8 files changed

+6
-407
lines changed

.bingo/.gitignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

.bingo/README.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

.bingo/Variables.mk

Lines changed: 0 additions & 25 deletions
This file was deleted.

.bingo/buf.mod

Lines changed: 0 additions & 5 deletions
This file was deleted.

.bingo/buf.sum

Lines changed: 0 additions & 336 deletions
This file was deleted.

.bingo/go.mod

Lines changed: 0 additions & 1 deletion
This file was deleted.

.bingo/variables.env

Lines changed: 0 additions & 12 deletions
This file was deleted.

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
include .bingo/Variables.mk
1514
include Makefile.common
1615

16+
BUF := $(FIRST_GOPATH)/bin/buf
17+
BUF_VERSION ?= v1.39.0
18+
19+
$(BUF):
20+
go install github.com/bufbuild/buf/cmd/buf@$(BUF_VERSION)
21+
1722
.PHONY: deps
1823
deps:
1924
$(MAKE) common-deps

0 commit comments

Comments
 (0)