|
|
|
@ -60,7 +60,9 @@ function proto_tools_install {
|
|
|
|
|
local buf_version |
|
|
|
|
local mog_version |
|
|
|
|
local protoc_go_inject_tag_version |
|
|
|
|
local mockery_version |
|
|
|
|
|
|
|
|
|
mockery_version="$(make --no-print-directory print-MOCKERY_VERSION)" |
|
|
|
|
protoc_gen_go_version="$(grep github.com/golang/protobuf go.mod | awk '{print $2}')" |
|
|
|
|
protoc_gen_go_grpc_version="$(make --no-print-directory print-PROTOC_GEN_GO_GRPC_VERSION)" |
|
|
|
|
mog_version="$(make --no-print-directory print-MOG_VERSION)" |
|
|
|
@ -71,6 +73,12 @@ function proto_tools_install {
|
|
|
|
|
# echo "mog: ${mog_version}" |
|
|
|
|
# echo "tag: ${protoc_go_inject_tag_version}" |
|
|
|
|
|
|
|
|
|
install_versioned_tool \ |
|
|
|
|
'mockery' \ |
|
|
|
|
'github.com/vektra/mockery/v2' \ |
|
|
|
|
"${mockery_version}" \ |
|
|
|
|
'github.com/vektra/mockery/v2' |
|
|
|
|
|
|
|
|
|
install_versioned_tool \ |
|
|
|
|
'buf' \ |
|
|
|
|
'github.com/bufbuild/buf' \ |
|
|
|
@ -128,15 +136,6 @@ function lint_install {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function tools_install { |
|
|
|
|
local mockery_version |
|
|
|
|
|
|
|
|
|
mockery_version="$(make --no-print-directory print-MOCKERY_VERSION)" |
|
|
|
|
|
|
|
|
|
install_versioned_tool \ |
|
|
|
|
'mockery' \ |
|
|
|
|
'github.com/vektra/mockery/v2' \ |
|
|
|
|
"${mockery_version}" \ |
|
|
|
|
'github.com/vektra/mockery/v2' |
|
|
|
|
|
|
|
|
|
lint_install |
|
|
|
|
proto_tools_install |
|
|
|
|