makefile: change buf to use tools.go ; backport v0.34 (#8852)

* makefile: update buf commands to use tools.go (#8609)

This will keep the version of `buf` consistent between all developer machines.
This commit is contained in:
Jasmina Malicevic
2022-06-23 16:47:44 +02:00
committed by GitHub
parent fe024521ef
commit a3cc3d98b9
9 changed files with 1046 additions and 8 deletions

13
tools/tools.go Normal file
View File

@@ -0,0 +1,13 @@
//go:build tools
// This file uses the recommended method for tracking developer tools in a go module.
//
// https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
package tools
import (
_ "github.com/bufbuild/buf/cmd/buf"
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
_ "github.com/vektra/mockery/v2"
)